标签:span port dump imp str 实例 code style div
1 import json 2 3 data= { 4 ‘no‘ : 1, 5 ‘name‘ : ‘Runoob‘, 6 ‘url‘ : ‘http:\\www.runoob.com‘ 7 } 8 9 json_str = json.dumps(data) 10 11 print(repr(data)) 12 print(json_str) 13 14 data2 = json.loads(json_str) 15 print(data2[‘name‘]) 16 print(data2[‘url‘])
标签:span port dump imp str 实例 code style div
原文地址:https://www.cnblogs.com/jpr-ok/p/9269800.html