摘要: #!/usr/bin/python# -*- coding:utf-8 -*- import osimport json file = open('a.txt','w')for root,dirs,files in os.walk('./'): file.write('root:' + root + 阅读全文
posted @ 2019-10-16 17:09 流星曳尾 阅读(113) 评论(0) 推荐(0) 编辑
摘要: https://www.runoob.com/python/python-json.html 阅读全文
posted @ 2019-10-16 16:33 流星曳尾 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*- coding:utf-8 -*- import os os.system('cocos jscompile -s ./dir1 -d ./dir2') 阅读全文
posted @ 2019-10-16 13:45 流星曳尾 阅读(1834) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*- coding:utf-8 -*- import shutil #shutil.copy(文件1,文件2)#将源内容复制到目标文件中。d.txt不存在则创建,存在则复制内容到d.txt 如不对文件重命名则文件2改为文件2的上级目录 例:shutil.cop 阅读全文
posted @ 2019-10-16 11:21 流星曳尾 阅读(1227) 评论(0) 推荐(0) 编辑