Python学习–range范围问题学习
range(1,5) #代表取值范围为1至5,不包含5 [1, 2, 3, 4,]
range(5) #代表取值范围为0至5,不包含5 [0, 1, 2, 3, 4]
range(1,5,2) #代表取值范围为1至5,其中间隔为2,不包含5 [1, 3]