#coding=utf-8 from selenium import webdriver from time import sleep import unittest#导入unittest库 import HTMLTestRunner #创建一个类,并且该类继承unittest.case类 class Test_baidu(unittest.TestCase): #初始环境,每一个用例执行时都会先执行这里的代码 def setUp(self): self.dr=webdriver.Chrome(
MYSQL导入CSV格式文件数据执行提示错误(ERROR 1290): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement. [1]分析原因 其实原因很简单,因为在安装MySQL的时候限制了导入与导出的目录权限.只允许在规定的目录下才能导入. 可以通过以下命令查看secure-file-priv当前的值是什么 SHOW VARIABLES LIKE "