有時候?qū)σ粋€列表進行循環(huán),想從最末尾的循環(huán)到最前端??梢杂腥缦掠梅?/p> a=[1,2,3,4,5] for i in a[::-1]: print(i) 5 4 3 2 1