使用正規表達式. python的用法需要引入一個re模組 import re. 使用compile建立物件正規表達式物件,表達式: Regex = re.compile(r'\d{2}-\d{4}-\d{4}').
確定! 回上一頁