How to write native newline character to a file descriptor in Python?

前端 未结 2 403
粉色の甜心
粉色の甜心 2020-12-14 06:11

The os.write function can be used to writes bytes into a file descriptor (not file object). If I execute os.write(fd, \'\\n\'), o

2条回答
提交回复
热议问题