Created
February 2, 2017 11:47
-
-
Save hsuh/a30b8d89aa20ebf1f1108d595aea02a9 to your computer and use it in GitHub Desktop.
prettifying django print
This file contains 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
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