import bson bson_file = open('teacher.bson', 'rb') bson_data = bson.decode_all(bson_file.read()) print(type(bson_data)) for data in bson_data: print(data)
难道不支持流式处理? 我搜了下,有个stream-bson的东西