Python寫了下面的代碼:classHuman:defsay(tell,text):print'@%s%s'%(tell,text)p=Human()p.say('Paul','hello')運(yùn)行后報(bào)錯,提示:Traceback(mostrecentcalllast):File"Untitled.py",line6,inp.say('Paul','hello')TypeError:say()takesexactly2arguments(3given)可是我的say()只有兩個參數(shù)啊
python調(diào)用類下的方法報(bào)錯
郎朗坤
2019-03-29 10:58:21