Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python3.4我想要创建列表0,24,48,…6168_Python_List - Fatal编程技术网

Python3.4我想要创建列表0,24,48,…6168

Python3.4我想要创建列表0,24,48,…6168,python,list,Python,List,在Python3.4中,有没有任何方法可以让这样的结果移动24 0 24 48 72 . . . 6186 多谢各位 是的,您必须使量程功能过载 for i in range(0,n,24): print(i) Output: 0 24 48 72... 是的,请参阅范围函数。对于range0100,24:printn中的n,请检查此项,我相信它将对您有所帮助。谢谢大家,尤其是@zetysz

在Python3.4中,有没有任何方法可以让这样的结果移动24

0
24
48
72
.
.
.
6186
多谢各位


是的,您必须使量程功能过载

for i in range(0,n,24):
    print(i)


Output:
0
24
48
72...

是的,请参阅范围函数。对于range0100,24:printn中的n,请检查此项,我相信它将对您有所帮助。谢谢大家,尤其是@zetysz