from urllib.parse import quote,unquote
text = "麗江"
print(quote(text,'utf-8'))
str = "%E9%A6%99%E5%A5%88%E5%84%BF%E5%8C%85%E6%96%B0%E6%AC%BE"
print(unquote(str,'utf-8'))
from urllib.parse import quote,unquote
text = "麗江"
print(quote(text,'utf-8'))
str = "%E9%A6%99%E5%A5%88%E5%84%BF%E5%8C%85%E6%96%B0%E6%AC%BE"
print(unquote(str,'utf-8'))
編程新手 1 def factorial(x): 2 if x == 0: 3 return 1 4 else:
http://www.jsphp.net/python/show-24-214-1.html https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/