python3.4报错'NoneType' object is not callable >>>
def set_passline(passline):
def cmp(va):
if va>=passline:
print('pass')
else:
print ('failed')
return cmp
fun_100 = set_passline(60)
fun_150 = set_passline(90)
fun_100(89)
fun_150(89)
def set_passline(passline):
def cmp(va):
if va>=passline:
print('pass')
else:
print ('failed')
return cmp
fun_100 = set_passline(60)
fun_150 = set_passline(90)
fun_100(89)
fun_150(89)
2017-07-18
举报