global语句

is_this_global = 'xyz'
def foo():
    global is_this_global
    this_is_local = 'abc'
    is_this_global = 'def'
    print this_is_local + is_this_global
posted @ 2015-12-20 22:09  dflyingfish  阅读(196)  评论(0)    收藏  举报