本篇文章介紹Python 的global 陳述。 ... 此時如果要修改外部全域變數的值,就要利用關鍵字global 宣告全域變數的名稱,例如這裡function3() 先用global 宣告了a ...
確定! 回上一頁