摘要:
#!/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 + 阅读全文
摘要:
https://www.runoob.com/python/python-json.html 阅读全文
摘要:
#!/usr/bin/python# -*- coding:utf-8 -*- import os os.system('cocos jscompile -s ./dir1 -d ./dir2') 阅读全文
摘要:
#!/usr/bin/python# -*- coding:utf-8 -*- import shutil #shutil.copy(文件1,文件2)#将源内容复制到目标文件中。d.txt不存在则创建,存在则复制内容到d.txt 如不对文件重命名则文件2改为文件2的上级目录 例:shutil.cop 阅读全文