File size: 167 Bytes
e16247a
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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))