摘要:
class TT: def __init__(self): print "__init__" def __call__(self): print "__call__" def __str__(self): return "__str__" def __int__(self): return "__i 阅读全文
摘要:
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 阅读全文