会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
helloTerry
博客园
首页
新随笔
联系
订阅
管理
2020年3月28日
python处理列表或字典包含中文乱码问题
摘要: Python中的列表(list)或字典包含中文字符串,直接使用print会出现乱码 #打印字典 dict1 = {'name':'张三'} print(dict) {'name': '\xe5\xbc\xa0\xe4\xb8\x89'} #打印列表 list1 = ['艺术','名画'] print
阅读全文
posted @ 2020-03-28 23:06 helloTerry1998
阅读(1562)
评论(0)
推荐(0)
公告