Last active
March 7, 2019 11:16
-
-
Save stenote/6890ab79628b7857a635ce5db054c58d to your computer and use it in GitHub Desktop.
标准输出
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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