摘要:
1、源代码: import csv filepath = r"C:\\Users\\yl8\\Desktop\\user1.csv" csv_file = csv.reader(open(filepath ,"r")) for user1 in csv_file: print(user1[1]) 报 阅读全文
摘要:
1、按顺序执行 from selenium import webdriver import unittest import time class BaiduTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.driver = 阅读全文
摘要:
python操作excel使用xlrd、xlwt模块,xlrd模块是读取excel的,xlwt模块是写excel的。这几个模块可以使用pip安装, pip install xlrd pip install xlwt 1、参考代码: # import xlrd import xlwt # file_p 阅读全文