Python reversed () 函数 ... alph = ["a", "b", "c", "d"] ralph = reversed(alph) for x in ralph: print(x) ... 参考手册:list.reverse() 方法(反转列表).
確定! 回上一頁