摘要: 1.创建py文件 创建txt文档,然后修改后缀名(如无,点击查看,勾选文件扩展名) 2.头部信息 #!/usr/bin/python# -*- coding:utf-8 -*- 3.逻辑运算符 and (同 &&) or(同 ||) not(同!) 阅读全文
posted @ 2019-10-10 15:38 流星曳尾 阅读(217) 评论(0) 推荐(0)
摘要: // 初始化var scrollView = new ccui.ScrollView(); // 设置方向scrollView.setDirection(ccui.ScrollView.DIR_VERTICAL); // 允许交互scrollView.setTouchEnabled(true); / 阅读全文
posted @ 2019-10-09 14:51 流星曳尾 阅读(539) 评论(0) 推荐(0)
摘要: 增加 阅读全文
posted @ 2019-10-08 17:02 流星曳尾 阅读(128) 评论(0) 推荐(0)
摘要: jsb.fileUtils.getStringFromFile(fileName);日志cc.log('file: ' +jsb.fileUtils.getStringFromFile(fileName).toString()); 阅读全文
posted @ 2019-09-29 16:56 流星曳尾 阅读(139) 评论(0) 推荐(0)
摘要: parseFloat(number).toFixed(2) 阅读全文
posted @ 2019-09-20 17:25 流星曳尾 阅读(196) 评论(0) 推荐(0)
摘要: url = 访问地址 + ? key1=value1 & key2 = value2 304(未修改)自从上次请求后,请求的网页未修改过。服务器返回此响应时,不会返回网页内容。 加参数,骗过服务器 阅读全文
posted @ 2019-09-16 15:04 流星曳尾 阅读(280) 评论(0) 推荐(0)
摘要: let background = new cc.Sprite(fileName_background);this.addChild(background,999999);background.setPosition(frameMid);let innerSprite = new cc.Sprite( 阅读全文
posted @ 2019-09-14 17:09 流星曳尾 阅读(346) 评论(0) 推荐(0)
摘要: 不然会出现莫名bug 阅读全文
posted @ 2019-09-12 13:30 流星曳尾 阅读(371) 评论(0) 推荐(0)
摘要: shutil.rmtree() 表示递归删除文件夹下的所有子文件夹和子文件。 阅读全文
posted @ 2019-09-11 15:33 流星曳尾 阅读(507) 评论(0) 推荐(0)
摘要: js 调用c++代码给的接口,c++代码储存在exe和dll文件中。 阅读全文
posted @ 2019-09-10 19:42 流星曳尾 阅读(366) 评论(0) 推荐(0)