b = list(a) b.reverse() b = ''.join(b) print(b). Python中,串列可以進行反轉,我們只要把字串轉換成串列,使用reverse()方法,進行反轉,然後再 ...
確定! 回上一頁