hongblue 发表于 2017-5-1 09:37:30

Python写的九九乘法表

for i in range(1,10):
result = ''
for j in range(1,10):
if j > i:
break
else:
result += str(i) + "*" + str(j) + "=" + str(i*j) + " "
print(result)


页: [1]
查看完整版本: Python写的九九乘法表