with open("C:\Users\8000\PycharmProjects\xuexi1128\cwp\test_data\cwpdata.txt","r") as fp:
fp = fp.readlines()
L=[]
for i in fp:
s = i.replace(" ","").split("|")
L.append(s)
print(L)
with open("C:\Users\8000\PycharmProjects\xuexi1128\cwp\test_data\cwpdata.txt","r") as fp:
fp = fp.readlines()
L=[]
for i in fp:
s = i.replace(" ","").split("|")
L.append(s)
print(L)