更新时间:2023-11-30 21:06:16
如果您打算进入交互模式,只需编写一个小的启动脚本.而不是仅使用以下命令启动python:
If you mean while going into the interactive mode, just make a small startup script. Instead of just launching python with:
python
尝试:
python -i startupImports.py
startupImports.py:
startupImports.py:
import time
from collections import defaultdict
from customclass import myclass
#...etc