原创 python使用正則

import re import requests from fake_useragent import UserAgent url = 'https://www.baidu.com' m = re.match(r'\w+',url)