Python 函数,,def abc(te


def abc(test):
print "hello %s"%test
abc("brid")
def say (a,*args):
print a, args
say("hello","zha","ab")
def say (a,**args):
print a, args
say ("hello",name=20,age=21)
def say (word=‘hello‘):
print word
say("hi")
def say (a,b=‘c‘):
print a ,b
return ‘bye‘
say("hello")
def count():
for i in range(1,10):
if i == 5 :
return
else:
print i
count()

Python 函数

相关内容

    暂无相关文章

评论关闭