range(1, 0)?
举一反三
- range(0, -10, -1)
- In the statement: for i in range(100),then value range of i ( ). A: 0~100 B: 0~99 C: 1~100 D: 1~101
- list(range(1, 0))的输出结果是[1]。( )
- 下列程序的执行结果是( ).for i in range(2): print(i,end=' ' )for I in range(4,6): print(I,end=' ' ) A: 2 4 6 B: 0 1 2 4 5 6 C: 0 1 0 1 2 3 D: 0 1 4 5
- 执行以下程序后,x的值是多少 x = 0 for i in range(3): x += 1 for j in range(3): if (j): continue x += 1