课程
/后端开发
/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
2017-05-18
源自:初识Python 5-7
正在回答
print (sum)
缩进 好样的 继续加油!
楼上代码都贴了,我还能说什么- -
缩进问题
sum = 0 x = 0 while True: x = x + 1 if x > 100: break if x % 2 == 0: continue sum = sum + x print sum
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序