再試行
- # -*- coding: utf-8 -*-
- # Name: module1
- # Purpose:
- # Author: Rython
- # Created: 2011-05-09
-
-
- a = 4.5452323324234
- def foo():
- """hello"""
- print ("I'm foo and a is %s" % a)
-
- def bar():
- print ("I'm bar and I'm calling foo")
- foo()
-
- class Spam(object):
- def grok(self):
- print ("I'm Spam.grok")
-
-
-
- if __name__ == '__main__':
- foo()