• 2022-06-09
    下面代码a = 4a ^= 3b = a ^ 2print(a,end=",")print(b)的输出结果是
    A: 7,5
    B: 64, 4096
    C: 5,7
    D: 4,3
  • A

    内容

    • 0

      阅读下面Python代码,选择正确输出结果:() for i in range(5): if i == 3: continue print(i,end=" ") continue print(i,end=" ") A: 0 1 2 3 4 5 B: 0 1 2 3 4 C: 2000 1 2 D: 0 1 2 4

    • 1

      下面的代码输出什么?() num=7 if num>3: print(“3”) if num<5: print(“5”) if num==7: print(“7”)

    • 2

      下面代码的输出结果是vlist = list(range(5))for e in vlist: print(e,end=",") A: 0 1 2 3 4 B: 0,1,2,3,4, C: [0, 1, 2, 3, 4] D: 0;1;2;3;4;

    • 3

      以下程序的执行结果是。 L = &#91;1, 3, 5, 7, 9&#93; print(L.pop(-3), end = ) print(L.remove(L&#91;0&#93;), end = ) print(L) A: 5 1 [3, 7, 9] B: 5 1 [1, 3, 7, 9] C: 5 None [3, 7, 9] D: 5 None [1, 3, 7, 9]

    • 4

      ls = &#91;1, 2, 3, 4, 5&#93;ls.append(&#91;6, 7, 8&#93;)print(len(ls))代码的输出结果是? A: 5 B: 3 C: 8 D: 6