【单选题】以下代码执行的结果()
A. OK B. OK_OK C. OK_OK_OK D. ****
A. OK B. OK_OK C. OK_OK_OK D. ****
举一反三
- 字符串替换: echo substr_replace("abcdefg", "OK", 3)."";//abdOK echo substr_replace("abcdefg", "OK", 3,3)."";//abcOKg echo substr_replace("abcdefg", "OK", -2,3)."";//abcdeOK echo substr_replace("abcdefg", "OK", 3,-2)."";//abcOKfg echo substr_replace("abcdefg", "OK", 2,0)."";//abOKcdefg 编辑代码,并输出运行结果
- 阅读以下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
- 下列符合c语法的if语句是: A: if 3>5 then printf("Ok!"); B: if 3>5 printf("Ok!") C: if (3>5) then printf("Ok!"); D: if (3>5) printf("Ok!");
- Idioms are _______for an informal letter. A. OK B. Not OK
- print('I\'m \"OK\"! ' )的输出结果是? A: I'm "OK"! B: I'm "OK"!' C: I'm 'OK'! D: I\'m "OK"!