start_int = 1 stop_int = 6 step_int = 2 start_f = 1.0 stop_f = 6.0 step_f = 2.0 #错误写法:range(start_f,stop_f,step_f) print(range(start_int,stop_int,step_int))