range

for i in range(1,5):
print(i)

输出:1,2,3,4

总结: range = [a,b) 

原文地址:https://www.cnblogs.com/john123/p/11909404.html