sponsored links

参数调用

shell调用python脚本,并且向python脚本传递参数

February 17
shell调用python脚本,并且向python脚本传递参数
shell中: python test.py $para1 $para2 python中: import sys def main($canshu1, $canshu2) ..... main(sys.argv[1], sys.argv[2])