python保存列表

python保存列表 2018-8-24 保存为.txt文件 注:保存.txt须要将列表内容转为字符串格式php ##保存 ipTable=['123.111.111.1','111.111.111.1'] fileObject = open('sampleList.txt', 'w') for ip in ipTable: fileObject.write(str(ip))
相关文章
相关标签/搜索