摘要:
__name__是python中的内置变量,表示当前模块/方法/函数的名称 当.py文件被直接运行时,if name == 'main'之下的代码块将被运行;当.py文件以模块形式被导入时,if name == 'main'之下的代码块不被运行。 如: 定义const.py PI = 3.14 de 阅读全文
摘要:
目录使用selenium使用requests 使用selenium from selenium.webdriver import Chrome,ChromeOptions from selenium.webdriver.support.wait import WebDriverWait from s 阅读全文
摘要:
目录使用selenium使用requests 使用selenium from selenium.webdriver import Chrome,ChromeOptions from selenium.webdriver.support.wait import WebDriverWait from s 阅读全文