这样写有问题?
sum = 0 x = 1 n = 1 while True: y = 0 y = n while y>0: x *= 2 y -= 1 sum += x n += 1 if n >= 20: break print sum 为什么不对
sum = 0 x = 1 n = 1 while True: y = 0 y = n while y>0: x *= 2 y -= 1 sum += x n += 1 if n >= 20: break print sum 为什么不对
2016-08-27
举报