GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-basic/codes/225.py at master · smond9/python-basic Expand file tree/ Copy path225.pyMore file actions executable file ·19 lines (14 loc) · 365 Bytes / Copy path225.pyFile metadata and controlsexecutable file ·19 lines (14 loc) · 365 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #!/usr/bin/env python #coding:utf-8 class Person: def __init__(self,name): self.name = name print self.name def __work(self,salary): print "%s salary is: %d"%(self.name,salary) def worker(self): self.__work(500) if __name__=="__main__": officer = Person("Tom") #officer.__work(1000) officer.worker() |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |