i = 1
j = 1
while i < 10:
while j <= i:
print("{}*{}={}".format(j,i,i*j),end = " ")
j += 1
print()
j = 1
i += 1
i = 1
j = 1
while i < 10:
while j <= i:
print("{}*{}={}".format(j,i,i*j),end = " ")
j += 1
print()
j = 1
i += 1
转载于:https://www.cnblogs.com/wangliang666/p/9382967.html