1 import os 2 r=os.path.getsize("/root/catbird1.stl") 3 f=open("/root/catbird1.stl","rb") 4 s=len(f.read()) 5 print(r,s)
结果
1 6803519 6803519
1 import os 2 r=os.path.getsize("/root/catbird1.stl") 3 f=open("/root/catbird1.stl","rb") 4 s=len(f.read()) 5 print(r,s)
结果
1 6803519 6803519