python输出乘法口诀表
时间: 2023-05-16 19:04:42 浏览: 62
python 输出乘法口诀表(九九表) 示例
Sure, here's the code to output the multiplication table in Python:
```
for i in range(1, 10):
for j in range(1, i+1):
print('{}x{}={}\t'.format(j, i, i*j), end='')
print()
```
This will output the multiplication table from 1x1 to 9x9.
阅读全文