Python列表
1.writelines()直接写入l=["A","B","C","D"]f=open("k.txt","w")f.writelines(l)f.close()该方法写入直接写入列表元素2.str转化为字符串写入l=["A","B","C","D",1,2,3]f=open("k.txt","...
2019-06-20 22:36
阅读数 88