如题。。。
sum = 0 x = 1 n = 1 while True: if n>21: break sum = x * 2 ** ( n - 1 ) x = x n = n + 1 sum = sum - 1 print sum 这个写法没毛病?怎么改?
sum = 0 x = 1 n = 1 while True: if n>21: break sum = x * 2 ** ( n - 1 ) x = x n = n + 1 sum = sum - 1 print sum 这个写法没毛病?怎么改?
2018-01-13
举报