python 3 中文URL编码转换问题

链接里面含中文 转成URL编码

#先引入模块
from urllib.request import quote
>>> ff = '摄像头'
>>> ff = quote(ff)
>>> ff
'%E6%91%84%E5%83%8F%E5%A4%B4'
>>> 

猜你喜欢

转载自blog.csdn.net/AnYeZhiYin/article/details/82964725