python 2.4.3 无json 模块

try:
import json
except ImportError:
try:
import minijson as json
json.loads = json.read()
json.dumps = json.write()
except ImportError:
pass

猜你喜欢

转载自www.cnblogs.com/kuipertan/p/10331651.html