作者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/m.aspx?n=bbs/Python/M.1549367198.A.CE3.html
1F:推 lemon651: 把args去掉 直接跑要的function不就行了嗎 02/06 04:37