game_choice.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:tetris_table 作者: choffee 项目源码 文件源码
def button_event(self, button):
        if button == 1:
            return pygame.K_LEFT
        elif button == 3:
            return pygame.K_RIGHT
        elif button == 2:
            return pygame.K_UP
        elif button == 0:
            return pygame.K_DOWN
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号