```
def save_infos(filename, infos):
# 将信息保存到指定文件
if isinstance(infos, str):
infos = [infos]
try:
file_content =open(filename, 'a')
except Exception as e:
file_content =open(filename, 'w')
for infoin infos:
file_content.write(str(info) +'\n')
file_content.close()
```
网友评论