Get file list and file size in one go with Python?

后端 未结 0 1729
一生所求
一生所求 2020-12-31 00:10

I need to get a list of files with their respective size. An obvious way to do it is to use os.listdir(), then loop over the results with os.path.getsize(

相关标签:
回答
  • 消灭零回复
提交回复
热议问题