السلام عليكم انا اخ جديد بينكم
الحقيقة اني اتعلم هذه الغة الرائعة
اريد شرح لبعض فقرات هذا الكود من فضلكم:
import platform
for s in dir(platform):
if not s.startswith("_"): #If it does not start with an underscore.
f=getattr(platform, s) #Fetch the attribute (should be a function..)
try:
print "[%s => %s]"%(s, f()) #Prints attr, returned value
except:
pass #Global catch for functions requires params(e.g popen).في تعليمة برنت اشارة النسبة المؤية ما فائدتها ؟
حلقة فور لم افهم وظيفتها في هذا الكود
واشكركم مسبقا


