摘要: class TT: def __init__(self): print "__init__" def __call__(self): print "__call__" def __str__(self): return "__str__" def __int__(self): return "__i 阅读全文
posted @ 2018-08-22 17:20 前进者^_^ 阅读(1681) 评论(0) 推荐(0) 编辑
摘要: Python版本: 2.7 #coding=utf-8 import json dic = {"a":"中国"} print dic # {'a': '\xe4\xb8\xad\xe5\x9b\xbd'} print print json.dumps(dic) #{"a": "\u4e2d\u56f 阅读全文
posted @ 2018-08-21 16:02 前进者^_^ 阅读(31069) 评论(2) 推荐(1) 编辑