Li Yatao: share three encoding conversion methods for python to Chinese


Today while fetching html code for a web page using python's xpath, there was an encoding problem with the output, as follows.

Of course, it worked out fine., I've often encountered similar problems before,python When printing the results, There are times when&# The beginning of the dong, There are times when it will appearu perhapsx opening phrase, There are times when% opening phrase

I believe you will often encounter, many friends are very distressed, today I will share the common 4 for Chinese method of unified collation, I hope it will be helpful to you.

I have compiled the following 3 codes.

Code 1


Recommended>>
1、Artificial Intelligence Standardization White Paper 2018 Edition
2、Small program product manager Xu Zhongbin Big data to help education development
3、Google releases third generation AI chip with a performance spike Promising replacement for Nvidia GPUs
4、To attract more leeks people are already giving away free bitcoins
5、Driverless motorcycles introduced with fully automatic turning and braking

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号