python用while循环实现九九乘法表

#九九乘法表代码实现
first = 1
while first<=9:
second = 1
while second <= first:
print(str(second)+"*"+str(first)+"=",second*first,end="\t")
second +=1
print() #换行作用
first +=1

运行结果

 

posted @ 2019-08-04 19:16  文子1995  阅读(3118)  评论(0)    收藏  举报