尝试读取json文件并以字典形式返回:
def js_r(filename): with open('num.json', 'r')as f_in: json_d = f_read()
如何返回字典函数?
json python-2.7
json ×1
python-2.7 ×1