当前位置:主页 > 软件编程 > Python代码 >
时间:2021-02-07 14:48:50 | 栏目:Python代码 | 点击:次
文本如图:
Python:
import sys result=[] with open('accounts.txt','r') as f: for line in f: result.append(list(line.strip('\n').split(','))) print(result)
结果: