2017年11月17日

python os模块

摘要: 1. os.name 得到当前的正在使用的平台, windows 返回 ‘nt’,Linux返回‘posix’ 2.os.getcwd() 当前的工作路径 3.os.listdir() 得到指定路径下的 所有文件名 4.os.remove() 删除一个文件 5.os.system() 运行shell 阅读全文

posted @ 2017-11-17 22:02 jiayou888888 阅读(98) 评论(0) 推荐(0)

导航