小阳儿儿

python之99乘法表
#99乘法表
fir=1
while fir<=9:
    sec=1
    while sec<=fir:
        print(str(fir)+'*'+str(sec)+'='+str(fir*sec))
        sec+=1
    print() #换行
    fir+=1
#效果如图

 

posted on 2019-01-09 11:52  小阳儿儿  阅读(148)  评论(0编辑  收藏  举报