1. 程式人生 > >爬取微博

爬取微博

問題一:如何對網址中的中文字元解碼和編碼

from urllib.request import quote,unquote
search_content="機場"
search_content_utf8=quote(search_content,encoding="utf-8");
print(search_content_utf8)

問題二:不會使用re模組

中文字元範圍
如何使re模組