版权声明:如需转载,请注明转载地址。 https://blog.csdn.net/oJohnny123/article/details/81980170
def test(num):
for i in range(num):
print 'hello,world'
def test2(num):
print(num)
def call(times,funcname):
return funcname(times)
for i in xrange(6):
if i < 3:
call(i,test)
else:
call(i,test2)