Skip to content

Commit 2466c10

Browse files
committed
Added reference implementation script
1 parent 6f6591a commit 2466c10

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

example.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import readchar
2+
3+
if __name__ == '__main__':
4+
print('start... press q to quit')
5+
while 1:
6+
k = readchar.readkey()
7+
print('you pressed ' + str(k))
8+
if k == 'q':
9+
break

0 commit comments

Comments
 (0)