Skip to content

Instantly share code, notes, and snippets.

@hsuh
Created February 2, 2017 11:47
Show Gist options
  • Save hsuh/a30b8d89aa20ebf1f1108d595aea02a9 to your computer and use it in GitHub Desktop.
Save hsuh/a30b8d89aa20ebf1f1108d595aea02a9 to your computer and use it in GitHub Desktop.
prettifying django print
import yaml
a = [0, 1, ['a', 'b', 'c'], 2, 3, 4]
print yaml.dump(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment