[99] 乘法表加个一行代码的版本吧,哈哈
CLannadZSY opened this issue · comments
print("\n".join("\t".join(["%s*%s=%s" % (x, y, x * y) for y in range(1, x + 1)]) for x in range(1, 10)))
不错哈,感谢
告别枯燥,致力于打造 Python 实用小例子,更多Python良心教程见 https://ai-jupyter.com
Repository from Github https://github.comjackzhenguo/python-small-examples
CLannadZSY opened this issue · comments
print("\n".join("\t".join(["%s*%s=%s" % (x, y, x * y) for y in range(1, x + 1)]) for x in range(1, 10)))
不错哈,感谢