Python将txt文件内容转换成列表. 方法一:# -*- coding:utf-8 -*-f = open(r'ip.txt','r')a = list(f)print(a)f.close()方法二:# -*- coding:utf-8 - *-f ...
確定! 回上一頁