1 i = 1 2 while i <= 9: 3 n = 1 4 while n <=i: 5 print("%d*%d=%d\t"%(n,i,i*n),end="") 6 n += 1 7 print("") 8 i +=1
Python打印:九九乘法表
最新推荐文章于 2021-11-15 12:26:03 发布
1 i = 1 2 while i <= 9: 3 n = 1 4 while n <=i: 5 print("%d*%d=%d\t"%(n,i,i*n),end="") 6 n += 1 7 print("") 8 i +=1