标签:print object http man range int nbsp .sh 心得
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()
Python 学习 转载(出处:http://www.cnblogs.com/vamei )加心得 3days
标签:print object http man range int nbsp .sh 心得
原文地址:http://www.cnblogs.com/cln-chaoren/p/6158783.html