• 2022-06-06
    该语句echo substr("Hello world",10)."<br>";打印结果为______(1)_______,该语句echo substr("Hello world",-10)."<br>";打印结果为______(2)_______,该语句echo substr("Hello world",-10,-2)."<br>";打印结果为____(3)________,
  • d# ello world# ello wor

    内容

    • 0

      语句“echo str_replace("world","Peter","Hello world!");”的运行结果是

    • 1

      echo str_word_count("Hello world!");的输出结果是什么?

    • 2

      关于Python字符串操作的描述,错误的是 A: &gt;&gt;&gt; "hellohellohello"/3<br/>输出结果是"hello" B: &gt;&gt;&gt; "hello"*2<br/>输出结构是'hellohello' C: &gt;&gt;&gt; 'hello' + 1<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError:<br/>must be str, not int D: &gt;&gt;&gt; "hello" - "world"<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'

    • 3

      下列语句或语句序列中有语法错误的是_____。 A: int i,j; for( i=0, j=0; i&lt;5; i++, j--)cout&lt;&lt;&quot;Hello World!&quot;; B: for(10)cout&lt;&lt;&quot;Hello World!&quot;; C: int i; for( i=0; i&lt;5; i+=2) cout&lt;&lt;&quot;Hello World!&quot;; D: int i=0; for( ; i&lt;5; i++) cout&lt;&lt;&quot;Hello World!&quot;;

    • 4

      语句“”的输出结果为。 A: Hello B: World C: Hello World D: HelloWorld