How to save data instead of overwrite it with Python script

Hi guys,

I would like to ask if there is any way that we can save the simulation results in a “Grasshopper Python Script” component and this component will also record the data from the following simulations? Sorry for my little knowledge of Python. Please help me. Thank you very much.

Best regards,