python 九九乘法表(while实现)

python 九九乘法表(while实现)

fir=1
while fir<=9:
    sec=1
    while sec<=fir:
        print(str(sec)+"*"+str(fir)+"=",sec*fir,end="\t")
        sec+=1
    print()
    fir+=1

 

posted @ 2018-10-05 21:26  aliensky  阅读(315)  评论(0编辑  收藏  举报