為何下面這個無法運行? 顯示IdentationError:unexpected indent
sum = 0?
?x = 1?
?n = 1?
?while True: ? ?
? ? sum=sum+x ? ?
? ? x=x*2 ? ?
? ? n=n+1 ? ?
? ? if n>20: ? ? ? ?
? ? ? ? break?
?print sum
sum = 0?
?x = 1?
?n = 1?
?while True: ? ?
? ? sum=sum+x ? ?
? ? x=x*2 ? ?
? ? n=n+1 ? ?
? ? if n>20: ? ? ? ?
? ? ? ? break?
?print sum
2016-04-19
舉報
2016-04-19
2016-04-19
請問是哪里出的問題?顯示是第六行第一個x有問題,請問是什么問題呀?我自己看不出來。