主页
Python
Python range 函数
demo_type_range3
运行 ❯
×
更改方向
保存代码
更改主题
x = range(3, 10, 2) #display x: print(x) #convert to list to display the content of x: print(list(x))
range(3, 10, 2)
[3, 5, 7, 9]