shell如何接收输入参数

2025-05-14 08:12:46
推荐回答(2个)
回答1:

UNIX/Linux下的shell:
使用 $1 $2 ..... 引用输入参数

windows/cmd下的shell
使用%1 %2....引用输入参数

回答2:

read 变量