Python 中的reversed() 函式可以對可迭代的物件做反轉,可以是字串、列表、元組等 ... 對字串做反轉str = "Hello World" print(list(reversed(str))) ...
確定! 回上一頁