字串 中取反轉子字串. 如果想要取得反轉的子字串,只要將間隔值設為「-1」,例如: string = "python" print(string[::-1]) # 輸出為nohtyp.
確定! 回上一頁