ある名前空間の外の変数に代入したい時に使います。
>>> def outfunc(): ... o = "これが" ... def infunc(): ... nonlocal o ... o = "変わった" ... infunc() ... print(o) ... >>> outfunc() 変わった
プラグインの更新時に「http…
TypeScriptに触れる機…
Pythonは汎用的なプログラ…
Pythonは非常に汎用性が高…
Macで英語キーボードを使って…
PyCharmのテーマをDar…