有没有办法阻止函数调用print
print
我正在为一个正在开发的游戏使用pygame.joystick模块。
pygame.joystick
我创建了一个pygame.joystick.Joystick对象,并在游戏的实际循环中调用其成员函数get_button来检查用户输入。这个函数做了我需要它做的所有事情,但问题是它还调用了print,这会大大降低游戏的速度。
pygame.joystick.Joystick
get_button
我可以阻止此对print的调用吗
https://stackoverflow.com/questions/8391411
相似问题