test for flush()
This commit is contained in:
parent
c39e6e2606
commit
f7d0bcd4ff
|
@ -5,8 +5,11 @@ from socket import *
|
||||||
NULL_CHAR = chr(0)
|
NULL_CHAR = chr(0)
|
||||||
|
|
||||||
def write_report(report):
|
def write_report(report):
|
||||||
with open('/dev/hidg0','rb+') as fd:
|
#fd = open('/dev/hidg0','rb+')
|
||||||
|
fd = open('/home/qiurui/Documents/project/keyboard-hook/test/test.txt','rb+')
|
||||||
fd.write(report)
|
fd.write(report)
|
||||||
|
fd.flush()
|
||||||
|
fd.close()
|
||||||
|
|
||||||
#''代表服务器为 localhost
|
#''代表服务器为 localhost
|
||||||
myHost = ''
|
myHost = ''
|
||||||
|
|
Loading…
Reference in New Issue