正则表达式
import re
for tag in soup.find_all(re.compile("^b")):
print(tag.name)
# body
# bfor tag in soup.find_all(re.compile("t")):
print(tag.name)
# html
# titleLast updated
import re
for tag in soup.find_all(re.compile("^b")):
print(tag.name)
# body
# bfor tag in soup.find_all(re.compile("t")):
print(tag.name)
# html
# titleLast updated