课程
/后端开发
/Python
/初识Python
sum = 0
x = 0
while True:
x = x + 1
if x > 100:
break
if x % 2 == 0:
continue
sum= sum + x
print sum
2018-07-02
源自:初识Python 5-7
正在回答
缩进问题
sum = 0 x = 0 while True: x = x + 1 if x > 100: break if x % 2== 0: continue sum= sum + x print sum 结果 2500
sum = 0 x = 0 while True: x = x + 1 if x > 100: break if x % 2 == 0: continue sum= sum + x print sum
Teik
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序