摘要:
###豆瓣电影 import re import requests headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0"} url='https: 阅读全文
posted @ 2021-11-16 14:59
supermao12
阅读(68)
评论(0)
推荐(0)
摘要:
##python 正则表达式 #####示例1 import re pattern = '[a-z]*' print(type(pattern)) print(re.match(pattern,'hello123a').group(0)) #match函数会自动将字符串转换为正则表达式 当后面不符合 阅读全文
posted @ 2021-11-16 14:25
supermao12
阅读(83)
评论(0)
推荐(0)
浙公网安备 33010602011771号