micropython-lib/os/example_fsencode.py

8 wiersze
118 B
Python

import os
print(os.fsencode("abc"))
print(os.fsencode(b"abc"))
print(os.fsdecode("abc"))
print(os.fsdecode(b"abc"))