# 九九乘法表:列*行= 结果
j = 1 # 控制行数
while j<10:
i = 1 # 控住列数
while i<= j:
print(i,"x",j,"=",i*j,end="\t")
# print(f"{i}*{j}={i*j}",end=‘\t‘)
i += 1
print()
j += 1
for i in range(1, 10):
for j in range(1, i+1):
print(‘{}x{}={}\t‘.format(j, i, i*j), end=‘‘)
print()
原文:https://www.cnblogs.com/duxiangjie/p/14032743.html