in Ipython, the syntax to execute a script is %run script.py . For example,. In [1]: %run test.py ... Out[2]: <module 'os' from '/usr/lib/python2.6/os.pyc'>.
確定! 回上一頁