码迷,mamicode.com
首页 > 2019年11月19日 > 全部分享
python matplotlib拟合直线
import numpy as np import matplotlib.pyplot as plt plt.rcParams['font.family'] = ['sans-serif'] plt.rcParams['font.sans-serif'] = ['SimHei'] def linea ...
分类:编程语言   时间:2019-11-19 01:11:05    阅读次数:106
mysql 事务
ACID(Atomicity、Consistency、Isolation、Durability,即原子性、一致性、隔离性、持久性) 事务就是要保证一组数据库操作,要么全部成功,要么全部失败。在 MySQL 中,事务支持是在引擎层实现的。MySQL 是一个支持多引擎的系统,但并不是所有的引擎都支持事务 ...
分类:数据库   时间:2019-11-19 01:10:29    阅读次数:87
常用正则表达式(数字、字符、固定格式)
一、数字相关的正则表达式 标准数字:/(^-?[0-9][0-9]*(.[0-9]+)?)$/ n位定长的数字:^\d{n}$m-n位之间的数字:^\d{m,n}$零和非零开头的数字:^(0|[1-9][0-9]*)$非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1, ...
分类:其他好文   时间:2019-11-19 01:10:02    阅读次数:79
sql注入(二)联合查询注入过程
注入步骤 找注入点且得到闭合字符 判断数据库类型 猜解列数,得到显示位 得到基本信息(如:数据库名、数据库版本、当前数据库名等) 得到数据库名 得到表名 得到列名 得到列值 1 1' order by 3 -- - 错误 2 1' order by 1 -- - 正确 3 1' order by 2 ...
分类:数据库   时间:2019-11-19 01:09:49    阅读次数:139
LightOJ - 1058 - Parallelogram Counting(数学,计算几何)
链接: https://vjudge.net/problem/LightOJ 1058 题意: There are n distinct points in the plane, given by their integer coordinates. Find the number of paral ...
分类:其他好文   时间:2019-11-19 01:09:33    阅读次数:70
django中使用KindEditor上传图片
1、创建app01, 并在settings.py里面设置 2、创建一个视图app01/views/test,用于响应KindEditor界面显示的Get请求 from django.shortcuts import render, HttpResponse from django.http impo ...
分类:Web程序   时间:2019-11-19 01:09:09    阅读次数:133
利用ArcMap根据底图制作一幅地图
1、将底图导入ArcMap中 2、使用“地理配准”给底图赋予真实的地理位置 选择一个标志性地点,点击“输入X和Y”,在百度坐标拾取器中查找此标志性地点的经纬度,然后将经纬度分别对应X和Y填入。 重复2步骤3次,也就是填入3个标志点的经纬度(因为3点决定一个面)。 3.然后打开项目目录,在项目目录中建 ...
分类:其他好文   时间:2019-11-19 01:08:50    阅读次数:117
Spring、SpringMvc、MyBatis 整合
web.xml SSMProject示例项目下载 SSMProject_jar包 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http:// ...
分类:编程语言   时间:2019-11-19 01:08:31    阅读次数:90
QT开发
if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) ui =MainWindow() ui.show() sys.exit(app.exec_())导入ui文件from PyQt4 import QtCor ...
分类:其他好文   时间:2019-11-19 01:07:50    阅读次数:56
shell脚本编程
Shell脚本编程 Shell是操作系统的最外层,是用户与Linux操作系统沟通的桥梁,用户输入命令,shell负责翻译成Linux内核可以理解的语言,也就是说shell是用户和操作系统之间的一个命令解释器,用户通过shell使用Linux。 shell也支持编程,主要用来开发实用的自动化的小工具, ...
分类:系统相关   时间:2019-11-19 01:07:26    阅读次数:88
LightOJ - 1005 - Rooks(组合数)
链接: https://vjudge.net/problem/LightOJ 1005 题意: A rook is a piece used in the game of chess which is played on a board of square grids. A rook can onl ...
分类:其他好文   时间:2019-11-19 01:07:10    阅读次数:88
安装配置git服务
创建git用户和组 groupadd -g 11111 git useradd -md /home/git -g 11111 -u 11111 git 安装依赖包 yum install curl-devel expat-devel gettext-devel openssl-devel zlib- ...
分类:其他好文   时间:2019-11-19 01:06:53    阅读次数:68
设计模式——行为型模式之中介者模式(七)
中介者模式 中介者模式(Mediator Pattern)是用来降低多个对象和类之间的通信复杂性。这种模式提供了一个中介类,该类通常处理不同类之间的通信,并支持松耦合,使代码易于维护。中介者模式属于行为型模式。 介绍 意图:用一个中介对象来封装一系列的对象交互,中介者使各对象不需要显式地相互引用,从 ...
分类:其他好文   时间:2019-11-19 01:06:38    阅读次数:123
C\C++语言利用epoll实现高并发聊天室Demo
2019-11-19 00:19:02 参考大佬:https://github.com/LinHaoo/chat Makefile: all:server client server:server.cpp g++ $^ -o $@ client:client.cpp g++ $^ -o $@ cle ...
分类:编程语言   时间:2019-11-19 01:06:21    阅读次数:164
LightOJ - 1067 - Combinations(组合数)
链接: https://vjudge.net/problem/LightOJ 1067 题意: Given n different objects, you want to take k of them. How many ways to can do it? For example, say th ...
分类:其他好文   时间:2019-11-19 01:05:38    阅读次数:62
ubuntu+tomcat+jenkins+git+maven
1、下载tomcat和jdk wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.27/bin/apache-tomcat-9.0.27.tar.gz wget --http-user=2696671285@qq. ...
分类:系统相关   时间:2019-11-19 01:05:09    阅读次数:81
浮动静态路由和BFD联动
浮动静态路由和BFD联动实现路由自动更新 路由器的工作是将数据包从源设备转发到目标设备。在它们之间可能有几个路由器。路由器使用称为路由表的数据库来转发这些数据包。静态路由(Static routing),一种路由的方式,手动配置路由项,而非动态决定。即使网络状况已经改变或是重新被组态,静态路由也不会 ...
分类:其他好文   时间:2019-11-19 01:04:51    阅读次数:89
626条   上一页 1 ... 30 31 32 33 34 35 36 37 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!