摘要:
一、文件操作: 1. 文件写入模式: os.mknod("test.txt") 创建空文件 f1 = open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 关于open 模式: w 以写方式打开, a 以追加模式打开 r+ 以读写模式打开 w+ 以读写模式打开 a+ 以读 阅读全文
posted @ 2016-02-26 15:46
stefan.liu
阅读(452)
评论(0)
推荐(0)
摘要:
文章目录: 1. time & datetime模块 2. os模块 3. random模块 4. sys模块 5. hashlib模块 6. json模块 7. shutil模块 8. logging模块 9. paramiko模块 10. subprocess模块 11. ConfigParse 阅读全文
posted @ 2016-02-26 11:51
stefan.liu
阅读(403)
评论(0)
推荐(0)