第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

如何從python內(nèi)部調(diào)用安裝在linux上的程序?

如何從python內(nèi)部調(diào)用安裝在linux上的程序?

慕勒3428872 2021-03-29 17:10:29
這就是我一直在嘗試的def test():    import sys    import subprocess    file1 = open(sys.argv[1],"r") #this is the input to fastacmd    idx = file1.readlines()    outname = idx[0].split("\r\n")[0]    foutname = outname + "_f_output"    astaseq = subprocess.call(["fastacmd","-i", file1, "-o",foutname])    blastresult = subprocess.call(["blastp", "-db", "db1.faa", "-query", foutname, "-out", outname])但是我被抓住了,我真的無法理解File "test.py", line 16, in <module>    fastacmd_blastp()  File "test.py", line 11, in test    fastaseq = subprocess.call(["fastacmd","-i", file1, "-o",fastaoutname])  File "/usr/local/lib/python2.7/subprocess.py", line 486, in call    return Popen(*popenargs, **kwargs).wait()  File "/usr/local/lib/python2.7/subprocess.py", line 672, in __init__    errread, errwrite)  File "/usr/local/lib/python2.7/subprocess.py", line 1202, in _execute_child    raise child_exceptionTypeError: execv() arg 2 must contain only strings有人可以幫忙嗎?謝謝
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 152 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號