再試行



  
  
  
  
  1. # -*- coding: utf-8 -*- 
  2. # Name:        module1 
  3. # Purpose: 
  4. # Author:      Rython 
  5. # Created:     2011-05-09 
  6.  
  7.  
  8. a = 4.5452323324234 
  9. def foo(): 
  10.     """hello""" 
  11.     print ("I'm foo and a is %s" % a) 
  12.  
  13. def bar(): 
  14.     print ("I'm bar and I'm calling foo"
  15.     foo() 
  16.  
  17. class Spam(object): 
  18.     def grok(self): 
  19.         print ("I'm Spam.grok"
  20.  
  21.  
  22.  
  23. if __name__ == '__main__'
  24.     foo()