substr_count("Hello world.The world is nice","world",12,15);
A: 1
B: 2
C: 3
D: 4
A: 1
B: 2
C: 3
D: 4
举一反三
- substr_count("Hello world.The world is nice","world",12,15);
- 该语句echo substr("Hello world",10)."<br>";打印结果为______(1)_______,该语句echo substr("Hello world",-10)."<br>";打印结果为______(2)_______,该语句echo substr("Hello world",-10,-2)."<br>";打印结果为____(3)________,
- 阅读以下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
- 若字符串 s = 'hello world',则语句 s.ljust(15, '.') 和 s.rjust(15) 的输出结果为? A: '....hello world'' hello world' B: 'hello world....'' hello world' C: 'hello world....''hello world ' D: 'hello world....''hello world'
- 下列语句中,正确的是()。 A: char*myString=“Hello—World!”; B: charmyString=“Hello—World!”; C: charmyString[11]=“Hello—World!”; D: charmyString[12]=“Hello—World!”;