我用beautifulsoup的get_text()抓资料
想要print出来看对不对
print(trs[0].get_text().encode("UTF-8").decode("UTF-8"))
结果一直出现错误
UnicodeEncodeError: 'cp950' codec can't encode character '\u7c7b' in position
0: illegal multibyte sequence
但却可以assign
a = trs[0].get_text().encode("UTF-8").decode("UTF-8")
但一样不能把a print出来
想请问这中的原因是什么...?