10 2019 档案

摘要:let 声明变量用于块级作用域中 阅读全文
posted @ 2019-10-23 15:39 流星曳尾 阅读(90) 评论(0) 推荐(0)
摘要:#!/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 流星曳尾 阅读(118) 评论(0) 推荐(0)
摘要:https://www.runoob.com/python/python-json.html 阅读全文
posted @ 2019-10-16 16:33 流星曳尾 阅读(148) 评论(0) 推荐(0)
摘要:#!/usr/bin/python# -*- coding:utf-8 -*- import os os.system('cocos jscompile -s ./dir1 -d ./dir2') 阅读全文
posted @ 2019-10-16 13:45 流星曳尾 阅读(1868) 评论(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 流星曳尾 阅读(1247) 评论(0) 推荐(0)
摘要:#!/usr/bin/python# -*- coding:utf-8 -*- import os import shutil os.remove(path) #删除文件shutil.rmtree(path) #删除文件夹及其子 可为'./dir' 也可'dir' 阅读全文
posted @ 2019-10-15 17:35 流星曳尾 阅读(1308) 评论(0) 推荐(0)
摘要:#!/usr/bin/python# -*- coding:utf-8 -*- import os fileName1 = 'a.txt'if os.path.exists(fileName1): file1 = open(fileName1,'w') file1.write('file1 exis 阅读全文
posted @ 2019-10-15 16:37 流星曳尾 阅读(207) 评论(0) 推荐(0)
摘要:#!/usr/bin/python# -*- coding:utf-8 -*- #!/usr/bin/python# -*- coding:utf-8 -*- file1 = open('a.txt','r')str = file1.read()file2 = open('b.txt','w')fi 阅读全文
posted @ 2019-10-15 15:58 流星曳尾 阅读(91) 评论(0) 推荐(0)
摘要:#!/usr/bin/python# -*- coding:utf-8 -*- open('a.txt','w+') 阅读全文
posted @ 2019-10-15 15:54 流星曳尾 阅读(168) 评论(0) 推荐(0)
摘要:#!/usr/bin/python# -*- coding:utf-8 -*- import os dir = './dir'os.mkdir(dir) 阅读全文
posted @ 2019-10-15 15:24 流星曳尾 阅读(140) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-11 10:49 流星曳尾 阅读(74) 评论(0) 推荐(0)
摘要:1.创建py文件 创建txt文档,然后修改后缀名(如无,点击查看,勾选文件扩展名) 2.头部信息 #!/usr/bin/python# -*- coding:utf-8 -*- 3.逻辑运算符 and (同 &&) or(同 ||) not(同!) 阅读全文
posted @ 2019-10-10 15:38 流星曳尾 阅读(214) 评论(0) 推荐(0)
摘要:// 初始化var scrollView = new ccui.ScrollView(); // 设置方向scrollView.setDirection(ccui.ScrollView.DIR_VERTICAL); // 允许交互scrollView.setTouchEnabled(true); / 阅读全文
posted @ 2019-10-09 14:51 流星曳尾 阅读(534) 评论(0) 推荐(0)
摘要:增加 阅读全文
posted @ 2019-10-08 17:02 流星曳尾 阅读(121) 评论(0) 推荐(0)