for … range()语句 for i in range(1,100,2): print(i,end=" ") 笔记: for i in range (1,100,2) 表示从1开始,到100结束(没有包括100),步长是2.