python的range()函数用法

1 for in range(1,5): #从1开始到5,但不包含5
2     print(i)

 

posted on 2016-06-19 21:20  python入门基础教程  阅读(153)  评论(0编辑  收藏  举报