用法: re.match( pattern, string ) import re text1 = '賴清德選上副總統!' name = re.match(r'賴清德', text1).group(0) print(name).
確定! 回上一頁