第一部分:选择题
1、Python L8 (15分)
运行下面程序的结果是( )。
i = 1
while i < 10:
print(i, end=' ')
i += 1
- 1 2 3 4 5 6 7 8 9
- 1 2 3 4 5 6 7 8 9 10
- 0 1 2 3 4 5 6 7 8 9
- 0 1 2 3 4 5 6 7 8 9 10
正确答案:A
运行下面程序的结果是( )。
i = 1
while i < 10:
print(i, end=' ')
i += 1
正确答案:A