fun指的是函数本身
fun()指的是函数的返回值
- def fun():
- return 1
a = fun
a = fun()
第一个a等于fun函数
第二个a等于1即fun函数返回的值
赞
踩
fun指的是函数本身
fun()指的是函数的返回值
- def fun():
- return 1
a = fun
a = fun()
第一个a等于fun函数
第二个a等于1即fun函数返回的值
转载于:https://www.cnblogs.com/tester-go/p/8461838.html
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。