一行代码输出九九乘法表
-
- print (["%d*%d=%d"%(i,j,i*j) for i in range(1,10)for j in range(1,i+1)])
- #该片段来自于http://www.codesnippet.cn/detail/2011201514064.html
来源: http://www.codesnippet.cn/detail/2011201514064.html
与本文相关文章
- Python 九九乘法表
- python逐行读取子进程的输出代码
- 一行代码让你的 Python 运行速度提高 100 倍! Python 真强!
- 输出九九乘法表
- python 学习 -- 练习题 6,7,8-- 九九乘法表, 前两项相加问题, 素数输出问题
- 一行代码求水仙花数
- python [[1,2],[3,4],[5,6]] 一行代码展开该列表, 得出 [1,2,3,4,5,6]
- 输出乘法表到excel