Agar shunday bo'lsa, siz Python 2.7 bilan mos keladigan quyidagi koddan foydalanishingiz kerak: import os def printlargefiles ((path='.', sizeingb=1): for root, dirs, files in os.walk ((path): for f in files: fp = os.path.join ((root, f) if os.path.getsize ((fp) >= sizeingb * 1024 * 1024 * 1024: print ((f"{fp} {os.path.getsize ((fp) / (1024 * 1024 * 1024.0): print.2f} Go") largefiles (()
spam lang_mismatch quality