Author:Skate
Time:2015/03/11
Mysql大小写敏感
字符串大小写敏感和Mysql的数据库的名字、表名字、字段名字、还有字段值有关。
1.和数据库名字、表名字、存储过程和触发器有关
Mysql中控制数据库名和表名的大小写敏感是由参数lower_case_table_names控制,
为0时;
表示区分大小写,使用CREATE TABLE或CREATE DAT...
分类:
数据库 时间:
2015-03-13 09:24:47
阅读次数:
206
DescriptionThe little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly-...
分类:
其他好文 时间:
2015-03-12 22:04:18
阅读次数:
152
URAL 1711. Code Names (数学啊 )...
分类:
其他好文 时间:
2015-03-11 17:10:07
阅读次数:
152
1、Ansible内置了一些变量以方便主机之间相互调用各自的变量。这些变量包括:*hostvars允许你访问另一个主机的变量,当然前提是ansible已经收集到这个主机的变量了:group_names:是当前主机所在的group列表groups:是所有inventory的group列表inventory_hostname:是在invento..
分类:
其他好文 时间:
2015-03-11 15:05:07
阅读次数:
174
双链表因为多了个前向指针,需要考虑的特殊因素多了一倍所以中间插入(这儿没写)和中间删除会比较复杂。其它倒没什么特别的,代码如下。测试代码 1 #include 2 #include "double_linklist.cpp" 3 using namespace std; 4 using names....
分类:
其他好文 时间:
2015-03-11 07:04:25
阅读次数:
136
解题方法1、暴力解题法(时间复杂度O(n*n)):首先遍历每个元素,然后遍历剩下的元素,看是否满足x+y=target.2、我们可以通过使用哈希图将值映射到索引将时间复杂度减少到O(n)。#include #include #include #include #include using names...
分类:
其他好文 时间:
2015-03-10 11:45:07
阅读次数:
112
--sort中的匿名函数中的grades称为外部局部变量,或者upvalue--函数内部定义的函数可以访问函数的变量--这个就是简单的闭包--function sortbygrade (names, grades)-- table.sort(names, function(n1, n2)-- ...
分类:
其他好文 时间:
2015-03-09 22:08:22
阅读次数:
102
from matplotlib import pyplot as pltfrom sklearn.datasets import load_irisimport numpy as npdata=load_iris()feature_names=data['featrue_names']target=...
分类:
Windows程序 时间:
2015-03-07 22:37:34
阅读次数:
1231
//用树状数组求出在b前面比b小的数的个数
//然后求b后面的顺序对的个数,
//枚举b可得quad
//由于数列是从1到n的所有数
//那么(n-num[j])-(j-1-totol[j])即为第j个数之后比j大的数的个数
//其中num[j]表示第j个数,total[j]表示在j之前比j小的数的个数
#include
#include
#include
using names...
分类:
编程语言 时间:
2015-03-07 15:43:58
阅读次数:
173
题意在大白书上。有3 种工作 abc 大于等于平均年龄的可以去做a c 工作, 小于平均年龄的可以去做 bc , 同样转化为2 -sat 去做, 因为对于每个人也只有2 种情况可以作为选择#include #include #include #include #include using names...
分类:
其他好文 时间:
2015-03-06 22:02:49
阅读次数:
152