我正在编写语音识别代码,我正在运行这个程序,我遇到了TypeError问题。pyjokesdef sptext(): with sr.Microphone() as source: print(data)
except sr.UnknownValueErrorengine.setProperty('rate&
print(f'Logged in as | {self.nick}')
async def guess(self, ctx: commands.Context): game.check_guess(self, guess)TracebackHumenoid\Hangman-for-chatbox\main.py", line 51, in Bot
现在我可以尝试访问函数,但当我这样做时,我得到了一个错误的"TypeError: first_func() takes 0 positional arguments but 1 was given" return flag
status = myclassObj.first_func()
print("Pass") print (&q