4
我的Python腳本開始與rPython和進口__future__
from __future__ import division
在RI做
library(rPython)
python.load("myscript.py")
我得到
File "", line 2 SyntaxError: from future imports must occur at the beginning of the file
你有行(即使是空的)EFORE的'從__future__進口部門?請參見[this](https://stackoverflow.com/q/38688504/1422451)。 – Parfait
不...但我使用pycharm來編輯我的代碼,也許這是在做一些事情...... –