码迷,mamicode.com
首页 > 其他好文 > 详细

while练习99乘法表

时间:2018-03-25 18:20:13      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:自己   log   乘法   print   99乘法表   +=   style   练习   post   

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

 

学习了99乘法表,回头自己看 温故而知新

while练习99乘法表

标签:自己   log   乘法   print   99乘法表   +=   style   练习   post   

原文地址:https://www.cnblogs.com/fate2048/p/8463962.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!