json python中的转储函数

json python中的转储函数

import json
 
# Creating a dictionary
Dictionary ={1:'Welcome', 2:'to',
            3:'Geeks', 4:'for',
            5:'Geeks'}
  
# Converts input dictionary into
# string and stores it in json_string
json_string = json.dumps(Dictionary)
print('Equivalent json string of input dictionary:',
      json_string)
print(        )
 
# Checking type of object
# returned by json.dumps
print(type(json_string))


相关文章

json python中的转储函数import json   # ...
CAU-Library-Assistant 通过ServerLess云函数实现自动预定座...
python字符串转化为datetime
中控考勤,实时获取打卡数据,实时数据上传
掘金签到脚本