如何从JSON获得字符串对象而不是Unicode?
json
simplejson
>>> import json>>> original_list = ['a', 'b']>>> json_list = json.dumps(original_list)>>> json_list'["a", "b"]' >>> new_list = json.loads(json_list)>>> new_list[u'a', u'b'] # I want these to be of type `str`, not `unicode`
MM们
相关分类