Last active
December 1, 2019 15:24
-
-
Save mjseeley/0be766588c10db5ef85b to your computer and use it in GitHub Desktop.
Print class elements all pretty like
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
print '\n'.join("%s: %s" % item for item in vars(x).items()) # replace 'x'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment