import pymysql # 打开数据库连接 db = pymysql.connect("localhost", "root", "123456", "TESTDB" ) # 使用cursor()方法获取操作游标 cursor = db.cursor() # SQL 插入语句 sql = "IN ...
分类:
数据库 时间:
2020-07-18 13:35:09
阅读次数:
170
MySQL 最基础命令总结(增删改) 下文中所有 database_name 代表具体数据库名字,table_name 代表具体表的名字,column_name代表具体属性列(字段名)名字,column_type代表具体属性列类型。 mysql 中查看命令 查看所有数据库 show database ...
分类:
数据库 时间:
2020-07-18 00:45:09
阅读次数:
95
1. We need to build the environemnt for the deepctr first pip install -U deepctr_torch 2. The current version is not supported by torch 1.5.0, we need ...
分类:
其他好文 时间:
2020-07-18 00:41:06
阅读次数:
80
The k-means algorithm captures the insight that each point in a cluster should be near to the center of that cluster. It works like this: first we cho ...
分类:
其他好文 时间:
2020-07-17 21:58:52
阅读次数:
87
做自动化过程中时长会遇到一些截图操作,那么在做客户端的时候,应该怎么进行截图呢? 窗口截图 在pywinauto中存在自带的截图函数 capture_as_image() 源码: def capture_as_image(self, rect=None): """ Return a PIL imag ...
一、函数原型 该函数定义在头文件< algorithm >中,作用为找区间的最大值(最小值)。 max_element template< class ForwardIt > ForwardIt max_element(ForwardIt first, ForwardIt last ); templ ...
分类:
其他好文 时间:
2020-07-17 19:33:04
阅读次数:
83
一、Reading After my graduation, I went to Beijing to further my studies. I lived there for three years. At first, I was happy, but later, I was frustra ...
分类:
其他好文 时间:
2020-07-17 14:02:28
阅读次数:
91
一:基本操作 1 from lxml import etree 2 text = ''' 3 <div> 4 <ul> 5 <li class="item-0"><a href="link1.html">first item</li> 6 <li class="item-1"><a href="li ...
分类:
其他好文 时间:
2020-07-16 22:04:45
阅读次数:
89
今日内容 1. JQuery 基础1-6 高级7-11: 1. 概念 2. 快速入门 3. JQuery对象和JS对象区别与转换 4. 选择器 5. DOM操作 6. 案例 7. 动画 8. 遍历 9. 事件绑定 10. 案例 11. 插件 JQuery 基础: 1. 概念: 一个JavaScrip ...
分类:
编程语言 时间:
2020-07-16 21:17:51
阅读次数:
69
CSS 伪元素语法伪元素的语法:selector:pseudo-element {property:value;}CSS类也可以使用伪元素:selector.class:pseudo-element {property:value;}:first-line 伪元素"first-line" 伪元素用于 ...
分类:
Web程序 时间:
2020-07-16 00:24:54
阅读次数:
91