python3.x module ‘urllib’ has no attribute ‘urlopen’ 或 ‘urlencode’问题解决方法

参考:https://blog.csdn.net/u010899985/article/details/79595187
参考:https://www.cnblogs.com/sheng-247/p/7679551.html

顺便遇到问题

cannot use a string pattern on a bytes-like object

输出的编码问题导致,如获取的正则编码与网页输出编码不一致,需要指定

Leave a Reply

You must be logged in to post a comment.

RSS feed for comments on this post. TrackBack URL