x = 0for i in range(3): x+=1 for j in range(3): if(j): continue x+=1print(x)
举一反三
- x = 0for i in range(3): x+=1 for j in range(3): if(j): continue x+=1print(x)输出结果为( )
- 执行以下程序之后x的值为()x=0for i in range(3):x+=1for j in range(3):if(j):continuex+=1print(x) A: 3 B: 6 C: 9 D: 12
- 执行以下程序后,x的值是x=0for i in range(3):x+=1for j in range(3):if(j):continuex+=1 A: 12 B: 9 C: 6 D: 3
- 执行以下程序后,x的值是多少 x = 0 for i in range(3): x += 1 for j in range(3): if (j): continue x += 1
- for i in range(1, 3): for j in range(1, 3): if i * j <; 2: continue print i * j