输出乘法口诀

num2=1
while num2 <10:
    num1=1
    while num1<=num2:
        print(num1,'*',num2,'=',num1*num2,end="  ")#在一行输出
        num1+=1
    print()#换行
    num2+=1

posted @ 2018-07-24 15:28  人生是概率  阅读(93)  评论(0)    收藏  举报