下面哪个代码打印WelcometoPython10次?A.forcountinrange(1,10):()print(WelcometoPython)B.forcountinrange(0,10):()print(WelcometoPython)C.forcountinrange(1,11):print(WelcometoPython)D.forcountinrange(1,12):print(WelcometoPython)
下面哪个代码打印WelcometoPython10次?A.forcountinrange(1,10):()print(WelcometoPython)B.forcountinrange(0,10):()print(WelcometoPython)C.forcountinrange(1,11):print(WelcometoPython)D.forcountinrange(1,12):print(WelcometoPython)
A.BD
B.ABC
C.AC
D.BC
E.AB
正确答案:BC
Tag:python语言程序设计 代码
时间:2022-01-17 20:24:37
- 上一篇:分析以下的代码?sum=0fordinrange(0,10,0.1):()sum+=sum+d
- 下一篇:下面哪个代码能成功计算1/2+2/3+3/4+...+99/100?A.sum=0foriinrange(1,99):()sum+=i/(i+1)print(Sumis,sum)B.sum=0foriinrange(1,100):()sum+=i/(i+1)print(Sumis,sum)C.sum=0foriinrange(1.0,99.0):()sum+=i/(i+1)print(Sumis,sum)D.sum=0foriinrange(1.0,100.0):()sum+=i/(i+1)print(S