标签:info image alt mic 图片 print 文件 pytho readline
.txt文件如下:
代码实现:
with open(‘F:/F/python_code/00.txt‘) as f: a = f.readlines() b = [n[:-1] for n in a] print(b)
标签:info image alt mic 图片 print 文件 pytho readline
原文地址:https://www.cnblogs.com/czz0508/p/10461405.html