1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#!/usr/bin/env python # -*- coding: utf-8 -*- import json aboutme = [ { 'Name':'flyfish', 'Profession':'OPS', 'Like':('Linux','Python','Shell','游泳'), 'Goodat':['Linux','CI/CD','自动化运维','扯扯淡'], 'QQ':'120730545'} ] if __name__ == '__main__': print 'AboutMe:', json.dumps(aboutme,sort_keys=True, indent=2,encoding='utf8',ensure_ascii=False) AboutMe: [ { "Goodat": [ "Linux", "CI/CD", "自动化运维", "扯扯淡" ], "Like": [ "Linux", "Python", "Shell", "游泳" ], "Name": "flyfish", "Profession": "OPS", "QQ": "120730545" } ] |