#以二进制格式打开文件 fp = open(file_path, "rb") content = fp.read() fp.close() print(type(content)) # <class 'bytes'>