Guest User

Untitled

a guest
Jul 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. try:
  2. key = ord(getch())
  3. if key == 77: #右矢印
  4. self.x += 0.1
  5. elif key == 75: #左矢印
  6. self.x -= 0.1
  7. except:
  8. pass
Add Comment
Please, Sign In to add comment