摘要: Lua库基本函数assert(v,[,message])当v时false时,返回messageassert(money >0,"error -1001");collectgarbage([opt,[arg]]);//垃圾回收相关collet stop restart count step setpa... 阅读全文
posted @ 2015-12-14 14:14 风林火山战 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 流程控制布尔值temp = True temp = False比较符号== != >=与或非and or not混合布尔的比较(4<5)and (5<6)流程控制元素条件语句 if else代码块程序执行流程描述if elseif name= John: print("my name is Jo... 阅读全文
posted @ 2015-12-14 12:23 风林火山战 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Python 基础命令行:在http://www.python.org安装python3,Mac下输入python3进入命令行整数,浮点数,字符串类型:-1,0.1,'game'字符串连接和复制:'My name is ' + 'John Wu'; 'John Wu '*5会打印5次,只有整数和字符... 阅读全文
posted @ 2015-12-14 10:32 风林火山战 阅读(824) 评论(0) 推荐(0) 编辑