Python : import re. #去掉輸入除英文字母及數字以外所有字元 s = re.sub("[^A-Za-z0-9]","",input("請輸入字串:")).lower() y = s[::-1] # y 為s 的反轉.
確定! 回上一頁