最新回答 / 慕仰3175336
sum=0x=1while True:? ? ? if x>100:? ? ? ? ? brake? ? ? if x%2==0:? ? ? ? ? continue? ? ? sum=sum+x? ? ? x=x+1print sum?這個程序為啥在DOS里面沒法運算,啥也不顯示
2016-03-03
最贊回答 / lc云澤
可以用負數,表示倒數,但用負數時要注意的是,新元素添加到原數列的指定位置,并把原數列指定位置的元素往后推一位<...code...>4這個元素把3的位置占了,并把3往后推了一位
2016-03-02
最新回答 / 猛虎南下
因為引號里面沒有轉義字符,所以看不出差別。試試這兩個的差別:print r'''"To be,or not to be":that is the question.\nWhether it's nobler in the mind to suffer.'''?print '''"To be,or not to be":that is the question.\nWhether it's nobler in the mind to suffer.'''
2016-03-01