• 2022-06-09
    以下程序运行后的输出结果是x="hello "print(x*3)
    A: hello*3
    B: hello hello hello
    C: hello
    D: hellohellohello
  • B

    内容

    • 0

      运行print(“\”hello world\)将输出() A: helloworld B: hello world" C: "hello world D: hello world

    • 1

      ‏Python语句print("Hello,World!")的输出是()。‎ A: ("Hello,World!") B: "Hello,World!" C: Hello,World! D: 运行出错

    • 2

      <?php $A=array_fill(-5,3,"Hello"); for ($i=0; $i<5; $i++){ echo "\$A[$i] = ".$A[$i]." "; } ?>以下程序运行结果为( )。 A: $A[0] = Hello $A[1] = Hello $A[2] = $A[3] = $A[4] = B: $A[0] = Hello $A[1] = Hello $A[2] = Hello $A[3] = $A[4] = C: $A[0] = $A[1] = $A[2] = $A[3] = $A[4] = D: 程序运行提示错误

    • 3

      语句print("hello<br/>world ")输出的是:(<br/>) A: ("hello<br/>world ") B: "hello<br/>world " C: hello<br/>world D: 运行结果出错

    • 4

      下列一段Python代码的运行结果是count = 2while count &gt; 0: print('hello') count = count - 1 breakprint('over') A: hello hello over B: hello over hello over C: hello over D: hello hello over over