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