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