Last active
August 15, 2018 04:07
-
-
Save FlintSable/7346633e2b6554c51152b4015b04a6f0 to your computer and use it in GitHub Desktop.
Basics and helper functions
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
| # output the modules methods | |
| dir(modulename) | |
| # pp print for pretty printing | |
| import pprint | |
| pp = pprint.PrettyPrinter(indent=4) | |
| pp.pprint(whatever) |
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
| import sys | |
| def read(): | |
| s = input() | |
| return s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment