mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
7 lines
112 B
Python
7 lines
112 B
Python
import uio as io
|
|
|
|
# test __enter__/__exit__
|
|
with io.StringIO() as b:
|
|
b.write("foo")
|
|
print(b.getvalue())
|