PHP7里面使用如下库,操作比较复杂 PHP7连接MongoDB语法如下: //参数规则: mongodb://账号:密码@IP:端口/数据库 $manager = new \MongoDB\Driver\Manager("mongodb://php:123456@localhost:27017/p ...
分类:
数据库 时间:
2020-07-29 09:52:05
阅读次数:
74
一、LSTM函数介绍 keras.layers.LSTM(units, activation='tanh', recurrent_activation='hard_sigmoid', use_bias=True, kernel_initializer='glorot_uniform', recurr ...
分类:
其他好文 时间:
2020-07-28 22:43:23
阅读次数:
135
关于Pyqt窗口调用的格式 正常设计两个ui文件 正常Pyuic转成.py 在唯一的 run.py 函数里这样写即可实现窗口调用 import ... from Timer2 import Ui_Form # Timer2为主ui对于py文件的名字 from TimerSetup import Ui ...
分类:
其他好文 时间:
2020-07-28 22:30:13
阅读次数:
96
# 定位到table,并获得table中所有得tr元素 menu_table = self.driver.find_element_by_xpath("//div[@class='datagrid-view1']/div[2]/div/table") rows = menu_table.find_e ...
分类:
编程语言 时间:
2020-07-28 17:25:27
阅读次数:
137
1 url="https://www.baidu.com" 2 driver = webdriver.Chrome() 3 driver.get(url) 4 xpath="" #Select元素的Xpath串 5 ele_sel = driver.find_element_by_xpath(xpa ...
分类:
其他好文 时间:
2020-07-28 16:59:46
阅读次数:
162
小爬最近的一个需求是:将windows系统下的打印任务批量有序给到网络打印机。 用户先从公司的OA(B/S模式)系统下 打印指定内容的表单以及表单中的附件内容。这个问题可以这样分解: 1、抓包,得到OA对应的任务接口,然后利用python requests模拟post请求,获取所有的表单的URL并进 ...
鼠标操作:1、perform():执行 2、context_click():右击 3、double_click():双击 4、drag_and_drop():拖动 5、move_to_element():鼠标悬停 from selenium import webdriver from seleniu ...
分类:
其他好文 时间:
2020-07-28 00:16:43
阅读次数:
77
一、简介 在每个节点(driver和executor)上运行的管理器,该接口提供用于在本地和远程将block放置和检索到各种存储(内存,磁盘和堆外)的接口。 二、源码 private[spark] class BlockManager( executorId: String, rpcEnv: Rpc ...
分类:
其他好文 时间:
2020-07-27 23:41:12
阅读次数:
73
Docker 底层是一个联合文件系统 (UnionFS) bootfs(boot file system)主要包含 bootloader 和 kernel ,bootloader 主要是用来引导加载 kernel,linux刚启动时会加载bootfs文件系统, 在docker镜像的最底层就是boot ...
分类:
其他好文 时间:
2020-07-27 09:22:39
阅读次数:
83
1.数据库连接文件配置问题 1. resources/jdbc.properties driver=com.mysql.jdbc.Driver url=jdbc:mysql://127.0.0.1:3306/kdb1 username=root password=root 2. dbConn.jav ...
分类:
Web程序 时间:
2020-07-26 23:09:19
阅读次数:
83