特牛生活网

python笔记_chinese=re findall-CSDN博客

网友收藏
文章浏览阅读191次。1正则表达式(regular expression)rere.sub(“a”,“b”,str):把str里的a换成b2贪婪与非贪婪.*:贪婪.*?:非贪婪3.获得网页源码urllib.request.urlretrieve4html = """ <html><head><title>The Dormouse's story</title></head> <body> _chinese=re findall