网页,码,输出结果都在这了,有什么方法让他只输出汉字的吗,试过text不行
实在不行,最后一步用字符串替换:
print(i.get_text().replace('<font>','').replace('</font>',''))
print(i.get_text())