代码如下(示例):
li = ['aaa','bbb','ccc']
with open(r'eng.txt', 'w') as f:
for i in li:
f.write(i + '\n')
结果:
欢迎分享,转载请注明来源:内存溢出
代码如下(示例):
li = ['aaa','bbb','ccc']
with open(r'eng.txt', 'w') as f:
for i in li:
f.write(i + '\n')
结果:
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)