python變數作用域,變數作用域scope 在python中是一個容易掉坑的地方。 ... print x. func(). #輸出結果是200。 def func():. x = num + 100. print x.
確定! 回上一頁