類別(class) 中方法(method) 所定義的變數(variable) 都是區域變數(local variable) ,這是說離開方法後變數便不能保存其值,若是使用static 宣告, static 變數能持續 ...
pydoing.blogspot.com