课程
/后端开发
/Python
/初识Python
sum = 0x = 1while x < 51: sum = sum + (2*x-1)print sum
2016-08-21
源自:初识Python 5-5
正在回答
少了x+1
zhusilun 提问者
sum = 0x = 1while x < 51: sum = sum + (2*x-1)
x = x + 1print sum
x一直都是1,所以一直执行语句
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序