PYTHON
swlhmq
这个作者很懒,什么都没留下…
展开
-
Base Function
#!/usr/bin/python# base functiondef jc(n): if n==1: return 1 return n * jc(n-1)print "hello jc(5)=", jc(5)原创 2015-07-10 22:24:39 · 618 阅读 · 0 评论 -
Base Class
#!/usr/bin/python# base classclass person: def set_name(self, name): self.name = name def get_name(self): return self.name def gree原创 2015-07-10 22:26:26 · 494 阅读 · 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 · 347 阅读 · 0 评论