码迷,mamicode.com
首页 > 编程语言 > 详细

python之99乘法表

时间:2019-01-09 12:14:18      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:span   http   技术   png   div   nbsp   fir   str   ima   

#99乘法表
fir=1
while fir<=9:
    sec=1
    while sec<=fir:
        print(str(fir)+*+str(sec)+=+str(fir*sec))
        sec+=1
    print() #换行
    fir+=1
#效果如图
技术分享图片

 

python之99乘法表

标签:span   http   技术   png   div   nbsp   fir   str   ima   

原文地址:https://www.cnblogs.com/wangxy629/p/10243459.html

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