for,while循环嵌套二次练习
1 for i in range(5): 2 print(i) 3 4 #99乘法表 5 i=1 6 while i<=9: 7 j=1 8 while j<=i: 9 print("%a*%a=%a"%(j,i,j*i),"\t",end="") 10 j+=1 11 print() 12 i+=1 13 14 for i in range(1,10): 15 for j in range(1,i+1): 16 print("%a*%a=%a" % (j, i, j * i), "\t", end="") 17 print() 18 19 for i in range(2,10): 20 for a in range (1,i+1): 21 for b in range(1,a+1): 22 print(i,"+",a,"+",b,"/",end="") 23 print()