课程
/后端开发
/Python
/初识Python
sum = 0 x = 1 n = 1 while True: sum = sum + x x = x * 2 print '''x''' n = n + 1 if n > 20: break print sum
2019-04-10
源自:初识Python 5-6
正在回答
sum = 0 x = 1 n = 1 while True: sum = sum + x x = x * 2 print x n = n + 1 if n > 20: break print sum
原来直接输出就可以。。。
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序