1 import re 2 str = 'hello world! hello python' 3 pattern = re.compile(r'(?P<first>hell\w)(?P<symbol>\s)(?P<last>.*ld!)
確定! 回上一頁