DreamWorks

Never say Never。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Python

摘要:python中的self相当于C++中的this指针,指示的是其本身对象例如 1 high = 172 2 3 class PrintIn: 4 def __init__(self,high1): 5 self.high = high1 6 if(self.high 200):10 print "Mother fucker,are you Yao Ming?"11 else:12 print "O'ye,you can do this job very well"13 def p... 阅读全文

posted @ 2013-07-11 13:14 _Babyface 阅读(439) 评论(0) 推荐(0)