python字符串截取及Html解析

場景:一串字符串,包括html代碼,包括特定符號,目標是提取特定符號中間的子字符串,而且解析html代碼提取相關屬性的值。html 安裝:pip install BeautifulSoup4python 代碼參考:app import re from bs4 import BeautifulSoup from os.path import basename, splitext string1='C
相關文章
相關標籤/搜索