Python

python 파이썬 unboundlocalError 에러 해결방법

9D 2022. 9. 3. 12:51
728x90

 

python 파이썬 unboundlocalError 는

 

전역변수 사용한 함수를 사용할때 내부에서 global로 선언해야한다

 

보통 c언어에서는 전역변수를 사용하면 상관없지만 파이썬은 필요하다

 

 

728x90