翻译http://docs.python.org/tutorial/classes.html#a-first-look-at-classes
===================================================
global
#!/usr/bin/python
# Filename: func_global.py
def func():
global x
print 'x is', x
x = 2
print 'Changed local x to', x
x = 50
func()
print 'Value of x is', x
x is 40
Changed locale x to 2