# f = open("", 'w')
#
# (b'hello world') # TypeError: write() argument must be str, not bytes
#
# ()
f = open("", 'wb') # 二进制写模式
(b'hello world') # 二进制写
() # 关闭文件
f = open("", 'rb') # 二进制读
print(()) # b'hello world' 打印读出来的数据
() # 关闭文件