它似乎为我工作:
在您的PYTHONPATH中创建一个名为test.py的文件
def foo():
print('bar')
然后在emacs python shell(或者更好的是ipython shell)中,键入
>>> import test
>>> test.foo()
bar
现在修改test.py:
def foo():
print('baz')
>>> reload(test)
<module 'test' from '/home/unutbu/pybin/test.py'>
>>> test.foo()
baz