首页 > 其他 > 详细

while练习99乘法表

时间:2018-03-25 17:23:26      阅读:178      评论:0      收藏:0      [点我收藏+]
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乘法表

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!