When started with the -i option, it enters interactive mode after reading the file at startup. It will be easier if you write the import declarations of the basic modules that you often import together.
myStartup.py
import os
import datetime
import hogehoge
import .....
Prepare a file like Start the interpreter with the -i option as shown below. It can also be used with ipython.
python -i myStartup.py
Recommended Posts