2022-07-12 python参数传递的问题

$ python z.py 263.083432 531.611587 276.116211 528.489151 968.836829 516.832405 993.010136 512.242537

['z.py', '263.083432', '531.611587', '276.116211', '528.489151', '968.836829', '516.832405', '993.010136', '512.242537']


$ cat ../2tmp_9 | xargs -i sed 's/^/{} /g' ../2tmp_11 | head -n 2 | xargs -i -t python z.py {}

python z.py 263.083432 531.611587 276.116211 528.489151 956.393185 519.586326 968.836829 516.832405

['z.py', '263.083432 531.611587 276.116211 528.489151 956.393185 519.586326 968.836829 516.832405']

明显不同?用"{}"也不行的。

你可能感兴趣的:(2022-07-12 python参数传递的问题)