單項選擇題在shell腳本中,已知變量string=’creeper?awwwwman!’,那么echo ${string:6:3}的結(jié)果是()。

A.r?a
B.aww
C.?aw
D.er?


您可能感興趣的試卷

你可能感興趣的試題

2.單項選擇題在shell腳本中,下面哪種方法可以獲得字符串變量string的長度?()

A.#{$string}
B.${#string}
C.${$string}
D.#{#string}

3.單項選擇題在shell腳本中,good是已知變量,下面哪種方法不可以實現(xiàn)字符串的拼接賦值?()

A.txt="I am "$good"vegetable!"
B.txt="I am ${good}vegetable!"
C.txt=’I am ’$good’vegetable!’
D.txt=’I am ${good}vegetable!’