python的for循环

Posted on   猫头唔食鱼  阅读(87)  评论(0编辑  收藏  举报

写多了jsfor循环,python的有点不习惯。记录下。

# for 输出 0-9
  for a in range(10) :
      print(a)
 # for 输出1-10
  for a in range(1,11):
     print(a)

 

努力加载评论中...
点击右上角即可分享
微信分享提示