摘要:
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 带数字编号, 阅读全文
摘要:
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 阅读全文