1、安装python驱动 pip3 install pymysql 2、数据库操作命令 https://www.cnblogs.com/UncleYong/p/7753188.html 3、连接测试 查询 端口mysql>show global variables like 'port'; impo ...
分类:
数据库 时间:
2020-02-04 12:20:36
阅读次数:
90
一道非常有意思的反序列化漏洞的题目 花费了我不少时间理解和记忆 这里简单记录其中精髓 首先打开是一个登陆页面 dirsearch扫描到了www.zip源码备份 update.php 1 <?php 2 require_once('class.php'); 3 if($_SESSION['userna ...
在做自动化测试时,经常需要构造数据或者对库中的数据进行初始化,但是如果我们每次都是将要执行的数据库脚本按条写在用例中, 那么将非常的不好维护,因此我们需要直接执行数据库脚本文件。 在databaselibrary库中,我们可以通过execute sql script关键字来执行数据库脚本文件。 示例 ...
分类:
数据库 时间:
2020-02-02 00:56:58
阅读次数:
94
1 """ 2 Given an array of integers, return indices of the two numbers such that they add up to a specific target. 3 4 You may assume that each input w ...
分类:
其他好文 时间:
2020-02-01 23:27:36
阅读次数:
86
通过execute sql string关键字来执行对数据库的插入操作和删除操作。 (1)、向数据库中插入数据 connect to database using custom params pymysql database='world',user='root',password='root',h ...
分类:
数据库 时间:
2020-02-01 23:10:40
阅读次数:
109
这里可借助字符串索引 可用于interface与type interface Dic<T> { [index:string]: T } let d1:Dic<string>= {'a': 'aaa', 'b': 'bbb'} interface NumDic<T> { [index:number]: ...
分类:
其他好文 时间:
2020-02-01 16:24:39
阅读次数:
49
139 单词拆分 给定一个非空字符串 s 和一个包含非空单词列表的字典 wordDict,判定 s 是否可以被空格拆分为一个或多个在字典中出现的单词。 说明: 拆分时可以重复使用字典中的单词。 你可以假设字典中没有重复的单词。 示例 1: 示例 2: 示例 3: 来源:力扣(LeetCode) 链接 ...
分类:
其他好文 时间:
2020-01-31 14:17:18
阅读次数:
56
本篇主要详细讲解Python中常用的列表、字典、元组相关的操作 一、列表 列表是我们最以后最常用的数据类型之一,通过列表可以对数据实现最方便的存储、修改等操作 通过下标获取元素 #先定义一个列表 letters = ['a', 'b', 'c', 'd', 'e'] letters[1] #输出:b ...
分类:
编程语言 时间:
2020-01-30 23:09:15
阅读次数:
71
Product settype acts as a very important role in CRM WebClient UI architecture. (1) The GenIL layer knows nothing about attributes modeled in settype. ...
分类:
其他好文 时间:
2020-01-30 17:21:00
阅读次数:
70
1. 备份原来的源文件 /etc/apt/sources.list 2. 新建文件 /etc/apt/sources.list 3. 将国内源粘贴复制进去 阿里源 4. 手动update一下 ...
分类:
系统相关 时间:
2020-01-28 15:55:51
阅读次数:
377