- 博客(7)
- 收藏
- 关注
原创 【无标题】
第一个:系统操作 import os print (os.sep) print (os.name) print (os.getenv('path')) print (os.getcwd()) 执行结果如下: 第二个:目录操作-增删改查 如图:输出当前的目录下的所有文件和文件夹 dirs="D:\\Release\\bin" files= os.listdir(dirs) print files 判断: path模块: 代码如下: import o...
2022-05-22 22:00:04
94
原创 【亚瑟王】
from selenium import webdriver from selenium.webdriver.common.by import By import time from lxml import etree import sys # from selenium.webdriver import ActionChains # 导入鼠标悬停模块 import requests # import re # url = 'https://pvp.qq.com/web201605/herolist.s.
2022-05-22 21:51:07
144
原创 小技巧 01
# google.execute_script('arguments[0].scrollIntoView();', location) # 使用js脚本 # 滚动下拉按钮
2022-05-13 23:50:34
126
原创 selenium 操作。
一、selenium定位方法 1、WebDriver8种基本元素定位方式 1)find_element_by_id() 根据id属性进行定位 2)find_element_by_name() 根据name元素进行定位 3)find_element_by_class_name() 根据class的名字进行定位 4)find_element_by_xpath() xpath是XML路径语言,它可以用来确定xml文档中的元素位置,通过元素的路径来完成对元素的查找 5)find_element_by_c
2022-05-13 23:20:09
413
原创 selenium 实现无可视化界面操作,实现规避操作
from time import sleep from selenium import webdriver from selenium.webdriver.common.by import By # -------实现无可视化界面------- # from selenium.webdriver.chrome.options import Options # -------------------------实现规避检测------------------------- # from selenium.w.
2022-05-13 22:13:04
579
4
原创 Anaconda_简单数组
import numpy numpy.array(object,dtype=None,copy='True',order='K',subok=False,ndmin=0) # object 接收array,表示要创建的数组,无默认值 # dtype 接收data-type,表示数组所需要的数据类型,如果未给定,则选择保存
2022-03-07 22:54:36
667
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人