1.gulpfile.js 文件配置 https://www.cnblogs.com/qiu2841/p/10898533.html 2.unhandled promise rejection https://www.jianshu.com/p/232a8cc149d7 3.dest() https ...
分类:
其他好文 时间:
2020-07-06 20:05:57
阅读次数:
81
### str - list - tuple - dict ### 1.str ```python python 自带的dir函数可以查看序列的放法 使用方法: print(dir('dsad')) 1.index(find):查找某一个字符的起始位置,若找不到,index报错,find返回假 rf ...
分类:
其他好文 时间:
2020-07-06 20:02:51
阅读次数:
58
scrapy是python的一个爬虫框架,从网上随意搜索便能得到千篇一律的使用demo(本文也是哟),并且非常容易理解。即便你没看过相关的demo,也一样可以食用本文。我的应用场景大多是列表页,文章页等。如果你的业务需要登录验证,图片验证等,请另寻他法,不要在本篇文章浪费你宝贵的时间。由于我的代码编 ...
分类:
其他好文 时间:
2020-07-06 18:16:18
阅读次数:
70
# -*- coding:utf-8 -*- import requests from bs4 import BeautifulSoup url = "http://top.baidu.com/buzz?b=1&fr=topindex" header = { "user-agent": "Mozil ...
分类:
其他好文 时间:
2020-07-06 16:29:50
阅读次数:
414
Class.forName("com.mysql.jdbc.Driver"); //加载jdbc驱动 con=DriverManager.getConnection(url,user,password); //建立连接 stmt=con.createStatement(); //创建语句执行者(st ...
分类:
数据库 时间:
2020-07-06 16:21:54
阅读次数:
64
###函数接口定义: 函数Insert将X插入二叉搜索树BST并返回结果树的根结点指针; 函数Delete将X从二叉搜索树BST中删除,并返回结果树的根结点指针;如果X不在树中,则打印一行Not Found并返回原树的根结点指针; 函数Find在二叉搜索树BST中找到X,返回该结点的指针;如果找不到 ...
分类:
其他好文 时间:
2020-07-06 16:21:35
阅读次数:
57
1,自定义Mybatis框架接口分析 2,入门基础框架的分析 MybatisUtils代码: public class MybatisUtils { private static SqlSessionFactory sqlSessionFactory; static { String resourc ...
分类:
其他好文 时间:
2020-07-06 13:13:33
阅读次数:
58
1.driver.current_url:用于获得当前页面的URL 2.driver.title:用于获取当前页面的标题 3.driver.page_source:用于获取页面html源代码4.driver.current_window_handle:用于获取当前窗口句柄5.driver.windo ...
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. 给n个不同的数,求0-n这n+1个数里缺了哪个 利用异或运算的性 ...
分类:
其他好文 时间:
2020-07-06 12:45:24
阅读次数:
55
1、启动浏览器 from selenium import webdriver # 启动谷歌浏览器,依赖:先安装好chromedriver.exe驱动 # 方式1.当chromedriver放在python安装目录时 driver = webdriver.Chrome() # 方式2.通过execut ...
分类:
Web程序 时间:
2020-07-06 01:06:30
阅读次数:
82