帶擴(kuò)和和不帶括號(hào)的區(qū)別?
def cun (a,b):return a+bprint(cun) : 調(diào)用函數(shù),打印的是函數(shù)print(cun(2,3)),調(diào)用函數(shù)運(yùn)行后結(jié)果,打印的是 5
帶擴(kuò)和和不帶括號(hào)的區(qū)別?
def cun (a,b):return a+bprint(cun) : 調(diào)用函數(shù),打印的是函數(shù)print(cun(2,3)),調(diào)用函數(shù)運(yùn)行后結(jié)果,打印的是 5