mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
10 lines
225 B
Python
10 lines
225 B
Python
import ctypes
|
|
read_data = ctypes.c_buffer(b'', 16)
|
|
print("----read size----")
|
|
datalen = len(read_data.raw)
|
|
print(datalen)
|
|
print(read_data.raw)
|
|
print("----read data----")
|
|
for i in range(0,datalen):
|
|
print(read_data.raw[i])
|