怎样改这句代码
sum = 0 x = 0 while True: x = x + 1 if x = x/2*2: continue sum=sum+x if x > 100: break print sum 我这行代码为什么不对啊,想要改的话怎么改啊,if x = x/2*2:#x是奇数的话除2乘2就比原x小1了
sum = 0 x = 0 while True: x = x + 1 if x = x/2*2: continue sum=sum+x if x > 100: break print sum 我这行代码为什么不对啊,想要改的话怎么改啊,if x = x/2*2:#x是奇数的话除2乘2就比原x小1了
2017-07-09
举报