84669 人が学習中
152542 人が学習中
20005 人が学習中
5487 人が学習中
7821 人が学習中
359900 人が学習中
3350 人が学習中
180660 人が学習中
48569 人が学習中
18603 人が学習中
40936 人が学習中
1549 人が学習中
1183 人が学習中
32909 人が学習中
メソッドの実行
は、受信した bash パラメータを 2 番目から Python スクリプトに渡す方法です。Python に渡されるパラメータの数は可変で、少なくとも 1 つ
#!/bin/bash if [ $# -lt 2 ] then echo 'Please input more than 2 parameter' exit 3 fi ALL_PARA=$@ # 自己变通吧, 将下面的语句换成需要执行的python语句 echo "Python 接受到的参数: ${ALL_PARA:2}" # 这语法能够获取第二个参数到最后的内容