Home Article Practice 软件测试脚本

软件测试脚本

2022-06-01 17:26  views:448  source:小键人5753024    

import os
# 引入os
import csv
# 引入csv
def gua(filename):
path=os.path.dirname(os.path.abspath(__file__))
now=path+'\\'+filename
print(now)
with open(now,'r',encoding="utf-8")as f:
data=csv.reader(f)
list=[]
for row in data:
list.append(row)
return list
if __name__ == '__main__':
data=gua('pinggua.csv')
for row in data:
print(row)



Disclaimer: The above articles are added by users themselves and are only for typing and communication purposes. They do not represent the views of this website, and this website does not assume any legal responsibility. This statement is hereby made! If there is any infringement of your rights, please contact us promptly to delete it.

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)