An error occurs when copying and pasting blender's clipboard to the Text editor under windows
I now find a solution is to modify the context to get all the information in the prompt,
def get_info_context():
    info_context = None
    for window in bpy.context.window_manager.windows:
        screen = window.screen

        for area in screen.areas:
            if area.type == &quot;INFO&quot;:
                info_context = {&quot;window&quot;: window, &quot;screen&quot;: screen, 'area': area, &quot;regions&quot;: area.regions}

    return info_context

info_context = get_info_context()
bpy.ops.info.select_all(info_context, action='SELECT') 
bpy.ops.info.report_copy(info_context)
bpy.ops.info.select_all(info_context, action='DESELECT')  
clipboard = bpy.context.window_manager.clipboard

So you can get！