Created
March 28, 2017 19:05
-
-
Save binki/7a6c9398ebe26906b14340da00ad6eb9 to your computer and use it in GitHub Desktop.
How to ask python to stay open after running a script
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
#!/usr/bin/env python3 | |
my_var = 23 |
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
C:\Users\ohnob\test>python -i blah.py | |
>>> print(my_var) | |
23 | |
>>> quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment