我有这个数组:
list = [4,4,4,4,5,5,5,5,9,9,9,9]
And i want to use this array like that:
for i in list:
print(i)
当然在这里我有这个结果:
4
4
4
4
5
5
5
5.....
但是我想在我的循环中打印它而不更改我的列表,例如list [:: 4],就在我的循环中:
4
5
9
请帮我 !
感谢阅读我!
我有这个数组:
list = [4,4,4,4,5,5,5,5,9,9,9,9]
And i want to use this array like that:
for i in list:
print(i)
当然在这里我有这个结果:
4
4
4
4
5
5
5
5.....
但是我想在我的循环中打印它而不更改我的列表,例如list [:: 4],就在我的循环中:
4
5
9
请帮我 !
感谢阅读我!
You might be looking for
set
:这产生