下面Python循环体执行次数与其他不同的是
A、i=0
whilei<=10:
print(i)
i+=1;
B、i=10
whilei>0:
print(i)
i-=1;
C、foriinrange(10):
print(i);
D、foriinrange(10,0,-1):
print(i)
发布时间:2024-11-26 19:35:24
A、i=0
whilei<=10:
print(i)
i+=1;
B、i=10
whilei>0:
print(i)
i-=1;
C、foriinrange(10):
print(i);
D、foriinrange(10,0,-1):
print(i)