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