a=10 a=a+5 # 不建議 print(a) a=10 a+=5 # 建議使用此表示 print(a). 後者是以a物件出發的method,其數值操作直接在a值的記憶體位置作用。前者會先另開一塊記憶體去算 ...
確定! 回上一頁