micropython-lib/unix-ffi/os/example_rw.py

7 wiersze
116 B
Python
Czysty Zwykły widok Historia

2014-04-19 17:35:25 +00:00
import os
assert os.write(1, "hello\n") == len("hello\n")
data = os.read(0, 256)
os.write(2, "read: %s\n" % data)