reversed這個函數會將指定的原本的list反轉過後return,但是對原本的list不會有任何影響。 test = [1, 2, 3, 4, 5, 6] for n in reversed(test): ...
確定! 回上一頁