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