Python 学习 转载(出处:http://www.cnblogs.com/vamei )加心得 3days
def pp(x):
print('as')
def k():
print ('k')
k()//k()必须在def k()同列 才能调用def k()
print (pp(2)) //当有2时,pp(x)必须要有参数
class Human(object):
laugh = 'hahahaha'
def show_laugh(self):
print self.laugh
def laugh_100th(self):
for i in range(100):
self.show_laugh()//也可以调用 show_laugh()
posted on 2016-12-11 00:16 chaoren_chen 阅读(104) 评论(0) 收藏 举报
浙公网安备 33010602011771号