l1 = plt.plot(x,y1,lable='linear line') 表示l1是一条线,x,y参数确定,lable表示这个线在figure里面的名称 plt.legend(loc='upper right') #plt的图例放置的位置在loc参数中 plt.legend(handles=[ ...
分类:
其他好文 时间:
2018-09-03 20:30:12
阅读次数:
251
[TOC] CVE 2018 8120 分析 1、实验环境 1.1、操作系统 windows 7 sp1 x86 未打补丁 "磁力链接" 1.2、用到的分析工具 windbg 32位 "下载地址" IDA pro 7.0 "正版链接" PCHunter "下载地址" ProcessHacker "下 ...
分类:
其他好文 时间:
2018-08-30 10:58:20
阅读次数:
895
分析 首先该runserver是为了实现在处理接口的同时,处理静态文件,所以Command继承了core核心中的RunserverCommand类,这样只需要在已有的基础上,改写是该类处理静态文件即可。 该类又增加了两个参数,nostatic表示不自动处理静态文件,insecure表示就算不是调试模 ...
分类:
其他好文 时间:
2018-08-12 12:19:00
阅读次数:
473
备份 innobackupex defaults file=/data/57mysql/mysql3506/my3506.cnf uwyz pzstzst S /tmp/mysql3506.sock A /data/backup/ 还原及启动实例 innobackupex apply log /da ...
分类:
其他好文 时间:
2018-07-31 21:34:29
阅读次数:
141
1、添加图例 2、调整位置和名称 如果我们想单独修改之前的 label 信息, 给不同类型的线条设置图例信息. 我们可以在 plt.legend 输入更多参数. 如果以下面这种形式添加 legend, 我们需要确保, 在上面的代码 plt.plot(x, y2, label='linear line ...
分类:
其他好文 时间:
2018-07-29 13:06:39
阅读次数:
605
在打开新的浏览器窗口时,如果要定位新窗口的元素,需要先切换到这个新打开的窗口中,才能定位到该窗口下的元素。 current_window_handle:获取当前句柄。可以把句柄理解成窗口的身份证 window_handles:获取所有打开窗口的句柄 from selenium import webd ...
分类:
编程语言 时间:
2018-07-27 19:28:21
阅读次数:
136
创建实体 把实体类写在Core项目中,因为实体是领域层的一部分。 一个简单的应用场景:创建一些任务(Assignment)并分配给人。 我们需要Assignment和Person这两个实体。 public class Assignment : Entity<long> { //外键 [Foreign ...
分类:
其他好文 时间:
2018-07-25 01:11:25
阅读次数:
253
Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any number of times. But ...
分类:
其他好文 时间:
2018-07-23 14:54:35
阅读次数:
225
今天使用ide连接线下MySQL报错Can not connect to MySQL server. Too many connections,报错很明确,与MySQL的连接数满了。想想也是,每起一个服务都会创建MySQL连接池,占用不少的长连接。用ide查看了一下,原来最大连接数才151,看来有必 ...
分类:
数据库 时间:
2018-07-08 23:02:59
阅读次数:
213
Prior to Java 8, HashMap and all other hash table based Map implementation classes in Java handle collision by chaining, i.e. they use linked list to ...
分类:
编程语言 时间:
2018-07-07 10:34:54
阅读次数:
226