i =1
y =1while i <=9and y <= i:for i inrange(1,10):# i = 1-9for y inrange(1, i+1):print("%d * %d = %d"%(y, i, i * y), end="\t")if i == y:print("\n")if i ==9:break
乘法表i = 1y = 1while i <= 9 and y <= i: for i in range(1, 10): # i = 1-9 for y in range(1, i+1): print("%d * %d = %d" %(y, i, i * y), end="\t") if i == y: print("\n") if i == 9: break