
PYTHON
swlhmq
这个作者很懒,什么都没留下…
展开
-
Base Function
#!/usr/bin/python # base function def jc(n): if n==1: return 1 return n * jc(n-1) print "hello jc(5)=", jc(5)原创 2015-07-10 22:24:39 · 661 阅读 · 0 评论 -
Base Class
#!/usr/bin/python # base class class person: def set_name(self, name): self.name = name def get_name(self): return self.name def gree原创 2015-07-10 22:26:26 · 537 阅读 · 0 评论 -
Hello World
#!/usr/bin/python # Filename : helloworld.py # run : python helloworld.py # : ./helloworld.py (first chmod a+x helloworld.py) # help: 1 python 2 help() print "hello world ! b原创 2015-07-10 22:19:35 · 378 阅读 · 0 评论