這個想法是指定一個 step 的 -1 並替代 None 為了 start 和 stop . ... 另一種選擇是使用內置函數 reversed() ,它可以接受一個字符串並返回一個反向迭代器。
確定! 回上一頁