在启动python shell时自动执行命令
问题描述:
我想知道是否有办法像使用bash一样对.bash_profile或.profile脚本进入python shell时自动运行命令。我想自动导入一些模块,所以我不必在每次跳入shell时输入整个shebang。在启动python shell时自动执行命令
感谢,
我想知道是否有办法像使用bash一样对.bash_profile或.profile脚本进入python shell时自动运行命令。我想自动导入一些模块,所以我不必在每次跳入shell时输入整个shebang。在启动python shell时自动执行命令
感谢,