Skip to content

Instantly share code, notes, and snippets.

@rambolee
Created March 6, 2017 07:56
Show Gist options
  • Save rambolee/73563a6e4c2dfddb76fea97f1d3c639b to your computer and use it in GitHub Desktop.
Save rambolee/73563a6e4c2dfddb76fea97f1d3c639b to your computer and use it in GitHub Desktop.
python 打印 dict 方法
import json

def VPrint(content):
    print json.dumps(content, encoding='utf-8', ensure_ascii=False,indent=1)
    
VPrint(some_dict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment