摘要: print(os.getcwd()) #当前文件目录 print(os.listdir(os.getcwd())) #当前路径下的所有文件和子目录 print(os.path.split(os.getcwd(path))) #将目录分为目录和文件名 print(os.path.join(path,p 阅读全文
posted @ 2019-09-05 14:49 itheone 阅读(104) 评论(0) 推荐(0)