摘要: 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]) 报 阅读全文
posted @ 2020-04-10 13:01 Penny悦 阅读(2378) 评论(0) 推荐(0) 编辑
摘要: 1、按顺序执行 from selenium import webdriver import unittest import time class BaiduTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.driver = 阅读全文
posted @ 2020-04-10 12:53 Penny悦 阅读(372) 评论(0) 推荐(0) 编辑
摘要: python操作excel使用xlrd、xlwt模块,xlrd模块是读取excel的,xlwt模块是写excel的。这几个模块可以使用pip安装, pip install xlrd pip install xlwt 1、参考代码: # import xlrd import xlwt # file_p 阅读全文
posted @ 2020-04-10 12:29 Penny悦 阅读(468) 评论(0) 推荐(0) 编辑