有没有办法阻止函数调用print?
print
我正在使用该pygame.joystick模块进行我正在进行的游戏.
pygame.joystick
我创建了一个pygame.joystick.Joystick对象,并在游戏的实际循环中调用其成员函数get_button来检查用户输入.该功能完成了我需要它做的所有事情,但问题是它也会调用print,这会大大减慢游戏速度.
pygame.joystick.Joystick
get_button
我可以阻止这个电话print吗?
python printing pygame
printing ×1
pygame ×1
python ×1