回答編集履歴
3
脱字訂正
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
グローバル変数に代入するのであれば、global宣言をしてください。
|
2
2
|
|
3
|
-
PythonプログラミングFAQ: なぜ変数に値があるのに UnboundLocalError が出るのですか
|
3
|
+
PythonプログラミングFAQ: なぜ変数に値があるのに UnboundLocalError が出るのですか?
|
4
4
|
[https://docs.python.org/ja/3/faq/programming.html#id9](https://docs.python.org/ja/3/faq/programming.html#id9)
|
2
参照追記
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
グローバル変数に代入するのであれば、global宣言をしてください。
|
2
2
|
|
3
|
-
FAQ: なぜ変数に値があるのに UnboundLocalError が出るのですか
|
3
|
+
PythonプログラミングFAQ: なぜ変数に値があるのに UnboundLocalError が出るのですか
|
4
4
|
[https://docs.python.org/ja/3/faq/programming.html#id9](https://docs.python.org/ja/3/faq/programming.html#id9)
|
1
リンク化
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
グローバル変数に代入するのであれば、global宣言をしてください。
|
2
2
|
|
3
3
|
FAQ: なぜ変数に値があるのに UnboundLocalError が出るのですか
|
4
|
-
https://docs.python.org/ja/3/faq/programming.html#id9
|
4
|
+
[https://docs.python.org/ja/3/faq/programming.html#id9](https://docs.python.org/ja/3/faq/programming.html#id9)
|