资讯

This post explains how to write to a file in Python. You'll discover how to create word files (.docx), spreadsheets (.csv), text files, and more!
One more note: Python is ruthlessly obedient. If you just spent 20 hours running a program and you save the file as temp_data.txt. Then later you run something and save it as temp_data.txt - done.