作者SuperBu (SonGohan)
看板Python
标题[问题] python -m 以模块执行
时间Tue Feb 5 19:46:35 2019
各位好
在reproduce时遇到一些问题
由於我从git上clone下来的程式
他是需要以python -m xxxx arg1... 这样执行
一般可能会是python xxxx.py
那如果我要把它整份模块移到jupyter
该怎麽移呢
网路上查到的差异好像只有sys.path的不同,但我把当前资料夹到路径写到zshrc也是一
样(我是用zshell)
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 101.8.132.248
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1549367198.A.CE3.html
1F:推 lemon651: 把args去掉 直接跑要的function不就行了吗 02/06 04:37