阅读以下Shell程序,它的输出是_____________ #!/bin/sh echo "ok,nice" loop=0 for str in "hello world" do loop=$(($loop+1)) echo "The $loop loop:$str" done
A: ok,nice The 2 loop:hello world
B: ok,nice The 1 loop:hello world
C: The 1 loop:hello world
D: ok,nice
A: ok,nice The 2 loop:hello world
B: ok,nice The 1 loop:hello world
C: The 1 loop:hello world
D: ok,nice
举一反三
- substr_count("Hello world.The world is nice","world",12,15); A: 1 B: 2 C: 3 D: 4
- substr_count("Hello world.The world is nice","world",12,15);
- 11字符串测试1:下列字符串定义正确的是: A: String str="Hello World!"; B: Str str="Hello World!"; C: var str="Hello World!"; D: var str='Hello World!';
- 如何使用 PHP 输出 "hello world"?( ) A: "Hello World"; B: echo "Hello World"; C: Document.Write("Hello World"); D: console.log("Hello World");
- 如何使用 PHP 输出 "hello world"?( ) A: "Hello World"; B: echo "Hello World"; C: Document.Write("Hello World");