【发布时间】:2015-05-30 22:23:19
【问题描述】:
这个问题听起来和this one 很像,但又不一样。当我按F5 在 Spyder 中运行我的脚本时,控制台会显示如下一行:
runfile('C:/Users/usr/Documents/Python Scripts/BanditBook/algorithms/ucb/test_ucb1.py'
, wdir='C:/Users/usr/Documents/Python Scripts/BanditBook/algorithms/ucb')
我想将 wdir 参数更改为上两层,以便自动运行脚本 wdir = C:/Users/usr/Documents/Python Scripts/BanditBook。我怎样才能在 Spyder 中做到这一点?我正在运行 Python 2.7。
【问题讨论】: