for i in range(0,10,2):print(i)ide
#range() 函数接受3个参数,前面两位是从0 下限到10 上限(不包括10),第三位表示步长函数
结果0 2 4 6 8it
倒叙range(10,-1,-1)class
10,9,8,7,6,5,4,3,2,1,0di