python对文件的操作
摘要:一、python中对文件、文件夹操作时经常用到的os模块和shutil模块常用方法。 1.得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd() 2.返回指定目录下的所有文件和目录名:os.listdir() 3.函数用来删除一个文件:os.remove() 4.删除多个目
阅读全文
posted @ 2016-12-03 20:12
posted @ 2016-12-03 20:12
posted @ 2016-12-02 14:44
posted @ 2016-12-02 12:22
posted @ 2016-12-02 12:13
posted @ 2016-11-29 16:52