python写入txt

with open("./data.txt", "w",encoding='utf-8')as f:
    f.write(','.join(columns))
f.close()

 

posted @ 2022-12-19 17:06  212的s  阅读(172)  评论(0编辑  收藏  举报