shell - How to pass parameters passed to bash to python starting from the second one
扔个三星炸死你
扔个三星炸死你 2017-06-28 09:24:40
0
1
1072
auto.sh
# auto.sh 需要调用3个python脚本1.py 2.py 3.py
用if判断参数进行选择执行哪个脚本

py脚本根据shell脚本传入的参数进行相关操作

Run method

./auto.sh -h 
./auto.sh cc -v 1.0 list 

is how to pass the incoming bash parameters to the python script starting from the second one. The number of parameters passed to python is variable, at least one

扔个三星炸死你
扔个三星炸死你

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!