用Python编写九九乘法表,同一行上的两个式子之间输出时空两个空格
时间: 2023-04-09 07:00:21 浏览: 107
python编写九九乘法表
Sure, here's the code for the multiplication table:
```
for i in range(1, 10):
for j in range(1, i+1):
print(f"{j} x {i} = {i*j}", end=" ")
print()
```
This will output the multiplication table with two spaces between each equation on the same line.
阅读全文