python 操作不被允许 (graphtecprint)
我正在运行一个Python程序。当程序执行到以下几行时:
f = open("/dev/bus/usb/007/005", "r")
x = fcntl.ioctl(f.fileno(), 0x84005001, '\x00' * 256)
它失败了,并显示错误信息:
IOError: [Errno 1] 操作不被允许
这可能是什么原因呢?
我正在运行一个Python程序。当程序执行到以下几行时:
f = open("/dev/bus/usb/007/005", "r")
x = fcntl.ioctl(f.fileno(), 0x84005001, '\x00' * 256)
它失败了,并显示错误信息:
IOError: [Errno 1] 操作不被允许
这可能是什么原因呢?