摘要:
import re text = "apple is $20.09,orange is $100.99" #ret = re.findall(".*\$\d+\.*\d*", text) #会找出所有匹配项 以list形式返回 #ret = re.sub("\$","㊙", text,1) #会替换 阅读全文
posted @ 2020-02-11 21:57
jswf
阅读(254)
评论(0)
推荐(0)
摘要:
from bs4 import BeautifulSoup text = """ <ul id="navList" class="w1"> <li><a id="blog_nav_sitehome" class="menu" href="https://www.cnblogs.com/">博客园</ 阅读全文
posted @ 2020-02-11 11:36
jswf
阅读(178)
评论(0)
推荐(0)

浙公网安备 33010602011771号