shell脚本里调用python脚本时候怎样传参数?
#!/usr/bin/shLIST=filenameDIR=./folderpython-c'importpyscript;printpyscript.DReplace(...
#!/usr/bin/sh
LIST=filename
DIR=./folder
python -c 'import pyscript;print pyscript.DReplace('$LIST', '$DIR')
('$LIST', '$DIR') 这样写不对吧? 展开
LIST=filename
DIR=./folder
python -c 'import pyscript;print pyscript.DReplace('$LIST', '$DIR')
('$LIST', '$DIR') 这样写不对吧? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询