結果 : how to access variable in nested function python