Skip to content

Instantly share code, notes, and snippets.

@stenote
Last active March 7, 2019 11:16
Show Gist options
  • Save stenote/6890ab79628b7857a635ce5db054c58d to your computer and use it in GitHub Desktop.
Save stenote/6890ab79628b7857a635ce5db054c58d to your computer and use it in GitHub Desktop.
标准输出
def pprint(data):
import json
import sys
print(json.dumps(data, sort_keys=True, indent=4, ensure_ascii=False).encode('utf8'))
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment