python 正则表达式提取返回内容

import re

re.findall(' <input name="address_id" type="hidden" value="(.*?)" />',neww.content.decode("utf-8")) #返回的是一个列表,使用re.match匹配不到内容;re.findall是匹配所有

猜你喜欢

转载自www.cnblogs.com/canglongdao/p/11961817.html