• 2022-06-12
    #print(“Test”)[br][/br]print(“abc”)#print(“xyz”)程序的输出结果是()
    A: Test
    abcxyz
    B: abc
    C: abcxyz
    D: Test abc
    xyz
  • B

    内容

    • 0

      以下程序的输出结果是____。[br][/br]for s in "abc":[br][/br]for i in range____: print ____ if s=="c":[br][/br]break

    • 1

      执行下面代码的输出结果是( )。[br][/br]class test:[br][/br] __data=0[br][/br]a=test() __data=10[br][/br]a._test__data=20[br][/br]test.__data=30[br][/br]print(test._test__data) A: 0 B: 10 C: 20 D: 30

    • 2

      执行下列代码后的输出结果是() class test: __data = 0[br][/br] a = test() a.__data = 10 a._test__data = 20 test.__data = 30 print(test.test__data) A: 0 B: 10 C: 20 D: 30

    • 3

      What will be the output of the following Python code? [br][/br]print("abc DEF".capitalize()) A: abc def B: ABC DEF C: Abc def D: Abc Def

    • 4

      下列Python代码,函数的定义和调用书写正确的是() A: def test(a| b): print(a) print(b) test(1| 2) B: def test(a): print(a) print(b) test(1, 2) C: def test(a, b): print(a) print(b) test(1) D: def test(a, b): print(a) print(b) test(1, 2)