Discuss / Python / os.path.getsize(path)

os.path.getsize(path)

Topic source

zL丶_44830

#1 Created at ... [Delete] [Delete and Lock User]

os.path.getsize(path) path为文件名时在当前目录下寻找 如果不是当前目录内的文件,需输入完整路径,否则报错。


  • 1

Reply