蓝桥等考Python组别八级002

第一部分:选择题

1、Python L8 (15分)

运行下面程序的结果是(    )。

i = 1

while i < 5:

    print(i, end=' ')

    i += 1

  1. 1 2 3 4
  2. 1 2 3 4 5
  3. 0 1 2 3 4
  4. 0 1 2 3 4 5

正确答案:A

2、Python L8 (15分)             

猜你喜欢

转载自blog.csdn.net/abilix_tony/article/details/133398045