摘要: #!/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 流星曳尾 阅读(90) 评论(0) 推荐(0)
摘要: #!/usr/bin/python# -*- coding:utf-8 -*- open('a.txt','w+') 阅读全文
posted @ 2019-10-15 15:54 流星曳尾 阅读(166) 评论(0) 推荐(0)
摘要: #!/usr/bin/python# -*- coding:utf-8 -*- import os dir = './dir'os.mkdir(dir) 阅读全文
posted @ 2019-10-15 15:24 流星曳尾 阅读(138) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-11 10:49 流星曳尾 阅读(72) 评论(0) 推荐(0)
摘要: 1.创建py文件 创建txt文档,然后修改后缀名(如无,点击查看,勾选文件扩展名) 2.头部信息 #!/usr/bin/python# -*- coding:utf-8 -*- 3.逻辑运算符 and (同 &&) or(同 ||) not(同!) 阅读全文
posted @ 2019-10-10 15:38 流星曳尾 阅读(212) 评论(0) 推荐(0)
摘要: // 初始化var scrollView = new ccui.ScrollView(); // 设置方向scrollView.setDirection(ccui.ScrollView.DIR_VERTICAL); // 允许交互scrollView.setTouchEnabled(true); / 阅读全文
posted @ 2019-10-09 14:51 流星曳尾 阅读(533) 评论(0) 推荐(0)
摘要: 增加 阅读全文
posted @ 2019-10-08 17:02 流星曳尾 阅读(120) 评论(0) 推荐(0)
摘要: jsb.fileUtils.getStringFromFile(fileName);日志cc.log('file: ' +jsb.fileUtils.getStringFromFile(fileName).toString()); 阅读全文
posted @ 2019-09-29 16:56 流星曳尾 阅读(135) 评论(0) 推荐(0)
摘要: parseFloat(number).toFixed(2) 阅读全文
posted @ 2019-09-20 17:25 流星曳尾 阅读(191) 评论(0) 推荐(0)
摘要: url = 访问地址 + ? key1=value1 & key2 = value2 304(未修改)自从上次请求后,请求的网页未修改过。服务器返回此响应时,不会返回网页内容。 加参数,骗过服务器 阅读全文
posted @ 2019-09-16 15:04 流星曳尾 阅读(267) 评论(0) 推荐(0)