摘要:
>>> ac="mmjj" >>> aaa="adfbvbad{}".format(ac) >>> aaa 'adfbvbadmmjj' >>> aaa="adfbvbad{}aaa{}".format(ac) Traceback (most recent call last): File "<py 阅读全文
摘要:
import urllib#汉字转编码aa=urllib.parse.quote("郭城峰".encode('gb2312'))#编码是GB2312print(aa)aa=urllib.parse.quote("格力塔扇".encode('gb2312'))print(aa) aa=urllib.p 阅读全文