python学习笔记3-全局变量

def fun():
    global a 
    #a 就被声明成全局变量

 

posted @ 2018-07-17 10:54  0点618  阅读(176)  评论(0编辑  收藏  举报