自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 IDEA莫名其妙报java.io.FileNotFoundException: XXX.xml (系统找不到指定的路径。)错误

IDEA代码前几天还能运行的,结果再运行的时候突然报java.io.FileNotFoundException: XXX.xml (系统找不到指定的路径。)错误解决方法:原读取file文件的方法:File file = new File("XXX.xml");改为:ClassLoader classLoader=getClass().getClassLoader();URL...

2019-11-29 22:26:00 2700 1

原创 Python+Selenium初学:CSS定位

在百度上用CSS定位搜索框1:打开百度Shift+Ctrl+i 检查框2:左上角点击搜索框定位3:使用Chropath获取CSS属性可知该CSS为#kw4:代码 注意 \n代表的是下一行即Enter 在python中可作为确定键使用from selenium import webdriverimport timedriver= webdriver.Ch...

2019-07-22 20:00:11 126

原创 Python+Selenium初学:Xpath定位

1:google下载插件Chropath2:定位:使用Chropath定位3:用该CSS定位from selenium import webdriverimport timedriver= webdriver.Chrome()driver.fullscreen_window()driver.get("https://www.google.com.hk/webhp?hl=...

2019-07-22 17:29:33 336

原创 Python + Selenium 初学:tag_name

from selenium import webdriverdriver= webdriver.Chrome()driver.fullscreen_window()'''谷歌香港'''driver.get("http://baidu.com")elements=driver.find_elements_by_tag_name('a')for element in elements:...

2019-07-22 16:39:15 407

原创 Python + Selenium 初学 Link partial_Link

'''两种方法点击Gmail'''from selenium import webdriverimport timedriver= webdriver.Chrome()driver.fullscreen_window()'''谷歌香港'''driver.get("https://www.google.com.hk/webhp?hl=zh-CN&sourceid=cnhp&a...

2019-07-22 15:36:44 186

原创 Python初学:kwargs

#判断args和kwargs是什么类型的def m1(*args,**kwargs): print("this type of args is",type(args)) print("this type of kwargs",type(kwargs))m1()##数组一定要是{}的##描述键对# dic_civis={"name":"Civis","year":"1...

2019-07-22 11:23:42 122 4

原创 Python初学:*args

'''什么时args''''''自带参数''''''传统写法'''# def add(num1,num2,num3):# print(num1+num2+num3)## add(1,1,4)'''args写法''''''type类型的自带无限参数*args'''def add(*args): print(type(args)) for name in...

2019-07-22 10:33:35 145 1

原创 Python初学:继承与重载

2019-07-20 21:26:26 96 2

原创 Python初学笔记:面向对象编程

def __init__(self,name,age) 让其name,age可以被S1,S2使用前被初始化class Student: #目的是修改下面的name,age 让其有参数 def __init__(self,name,age): self.name=name self.age=age def walk(self): ...

2019-07-20 21:14:45 58

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除