[python]获取文件夹下所有文件名2023-07-28 16:27:34 #---picknames.py---import os filenames = os.listdir(os.getcwd()) for name in filenames: print(name) 上一篇:MAC和PHY的区别下一篇:MAC和PHY的区别 (转自http://www.cnblogs.com/feitian629/archive/2013/01/25/2876857.html)