python3实现乘法口诀表
方法一 #Author:nhm for i in range(1,10): for j in range(1,i+1): print(i,'*',j,'=',i*j,"\t",end="") print("") 方法二 #Author:nhm for i in range(1,10): for j in range(1,i+1): print('{}*{}={}\t'.format(i,j,i*j,),end="") print("")
方法一 #Author:nhm for i in range(1,10): for j in range(1,i+1): print(i,'*',j,'=',i*j,"\t",end="") print("") 方法二 #Author:nhm for i in range(1,10): for j in range(1,i+1): print('{}*{}={}\t'.format(i,j,i*j,),end="") print("")