sum = 0x = 0n = 1while True: n = 2*n - 1 x = x + 1 if x < n: continue n = n + 1 sum = sum + x if x > 100: breakprint sum请问,哪里出错了?
添加回答
举报
0/150
提交
取消