Contact me:

摘要: print print %s `print('%s.2' % 'blahblah') 取两位字符` 数字 print %o print%d print%x(oct、dec、hex)8、10、16进制. print %f、print %e(小数点后6位浮点数和指数形式输出) format 带数字编号, 阅读全文
posted @ 2020-05-12 15:13 impwa 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1 # Conway's Game of Life 2 import random, time, copy 3 WIDTH = 60 4 HEIGHT = 20 5 6 # Create a list of list for the cells: 7 nextCells = [] 8 for x i 阅读全文
posted @ 2020-05-12 10:21 impwa 阅读(387) 评论(0) 推荐(0) 编辑