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

猜你喜欢

转载自www.cnblogs.com/aliensky/p/9745947.html