摘要: 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)