1 #!/usr/bin/env python 2 3 c = 123 4 5 class A: 6 def b(self): 7 return c 8 c = 456 9 10 a = A() 11 result_123 = a.b() 12 13 # vim: tabstop=4 expandtab shiftwidth=4