結果 : python unboundlocalerror cannot access local variable str where it is not associated with a value