shell如何向python传递参数,shell如何接受python的返回值

1、shell如何向python传递参数

shell脚本

python $sendmailCommandPath $optDate

python脚本 

lastDateFormat = sys.argv[1]

 

shell如何接受python的返回值

python脚本

print "hello"

shell脚本

s=`python b.py`
printf $s

  

原文地址:https://www.cnblogs.com/hark0623/p/4790801.html