写入到文件示例: #!/usr/bin/env python3 from math import exp, log, sqrt import re from datetime import date, time, datetime, timedelta from operator import itemgetter import sys import glob import os # 写入文件 # 写入一个文本文件 my_letters = ['a', 'b', 'c', 'd', 'e', '