import os
from os.path import join,getsize

file_size = os.stat("D:/python开发代码/Python之路/作业/day8/sina.html")
huamn_readable_size=(file_size.st_size)/1024
print("此文件大小为%sk"%(huamn_readable_size))

 

相关文章:

  • 2018-02-02
  • 2022-12-23
  • 2021-06-19
  • 2021-09-28
  • 2021-09-22
  • 2021-12-08
  • 2021-10-08
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
相关资源
相似解决方案