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

学习第一个python程序

时间:2019-05-18 22:25:54      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:pytho   for   style   code   打印   nbsp   学习   col   str   

打印9*9惩罚表

for i in range(1,10):
    for j in range(1,i+1):
        print(str(j)+"*"+str(i)+"="+str(j*i)+"\t",end="")
    print()

 

学习第一个python程序

标签:pytho   for   style   code   打印   nbsp   学习   col   str   

原文地址:https://www.cnblogs.com/wei23/p/10887361.html

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