Shell-11-read命令




read

read命令从标准输入读取,并且把输入的内容赋值给变量

参数

image-20210817145917821



示例

1

image-20210817145940072


2

image-20210817145952254


3 while

image-20210817150014123


4 分别赋值变量

image-20210817150034228


posted @ 2021-08-17 15:01  李成果  阅读(38)  评论(0编辑  收藏  举报