ddt数据使用

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("\n","").split("|")
L.append(s)
print(L)
posted on 2019-12-17 13:45  wenjingtester  阅读(182)  评论(0编辑  收藏  举报