摘要: >>> ac="mmjj" >>> aaa="adfbvbad{}".format(ac) >>> aaa 'adfbvbadmmjj' >>> aaa="adfbvbad{}aaa{}".format(ac) Traceback (most recent call last): File "<py 阅读全文
posted @ 2022-11-27 09:41 myrj 阅读(147) 评论(0) 推荐(0) 编辑
摘要: import urllib#汉字转编码aa=urllib.parse.quote("郭城峰".encode('gb2312'))#编码是GB2312print(aa)aa=urllib.parse.quote("格力塔扇".encode('gb2312'))print(aa) aa=urllib.p 阅读全文
posted @ 2022-11-27 08:54 myrj 阅读(446) 评论(0) 推荐(0) 编辑