![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python编程快速上手
七月的杨山路
想要成为一名程序猿的程序员
展开
-
4.10.2 字符图
grid = [['.', '.', '.', '.', '.', '.'], ['.', '0', '0', '.', '.', '.'], ['0', '0', '0', '0', '.', '.'], ['0', '0', '0', '0', '0', '.'], ['.', '0', '0', '0', '0', '0'], ['0', '0', '0', '0', '0', '.'], ['0', '0原创 2020-10-31 14:27:49 · 75 阅读 · 0 评论 -
4.10.1 逗号代码
spam = ['apple', 'banana', 'tofu', 'cats'] def lie(spam): for i in spam[:-1]: print(i, end=', ') print('and ' + spam[-1]) lie(spam) 4.10.1 逗号代码原创 2020-10-31 12:27:34 · 106 阅读 · 0 评论