Created
March 12, 2016 16:02
-
-
Save FGFW/9f07440c27476513cae7 to your computer and use it in GitHub Desktop.
python获取每个文件的名称和大小.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
python获取每个文件的名称和大小.py | |
http://bbs.bathome.net/thread-39660-1-1.html | |
2016年3月12日 23:52:29 codegay | |
""" | |
import os | |
[print(os.path.basename(r),str(os.path.getsize(r))+"我知道你很不爽,你咬我啊") for r in os.listdir(".") if os.path.isfile(r)] | |
input() |
Author
FGFW
commented
Mar 13, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment