json格式中文解码查询
这里有一坑,mysql 在查询的时候自动将'\' 做特殊字符处理了
需要四个 \\\\ 进行转换转义
$username = json_encode($username);
$username = str_replace('\\','\\\\\\\\',trim($username, '"'));
$where = $where . ' and wb_bp_user...
分类:
Web程序 时间:
2015-04-22 22:15:49
阅读次数:
215
题意:最大子矩阵和问题。解法:n^2的枚举一段矩阵,如下a11 a12 ... a1i ... a1j ... a1na21 a22 ... a2i ... a2j ... a2n...an1 an2 ... ani ... anj ... ann枚举出从i到j的一段矩阵,将每行的值加和则得到一个数...
分类:
其他好文 时间:
2015-04-22 11:13:56
阅读次数:
134
一.寄存器(CPU工作原理)
CPU由运算器、控制器、寄存器等器件构成。在CPU中,运算器进行信息处理;寄存器进行信息存储;控制器控制各种器件进行工作;内部总线连接各种器件,在它们之间进行数据传送。
不同的CPU寄存器的个数、结构是不一样的。
8086CPU有14个寄存器:AX、BX、CX、DX、SI、DI、SP、BP、IP、CS、SS、DS、ES、PSW。
8086CPU的AX、BX、C...
分类:
编程语言 时间:
2015-04-20 22:47:22
阅读次数:
283
.表示任意一个(数字,#,空格,特殊符号,字母)*表示0个或多个*号前面的字符+表示一个或多个+前面的字符?表示一个或零个前面的字符.*表示任意一个任意字符(贪婪的匹配方法)?,+,(),|,{},[]需要脱意参数:-c一用有多少行-Ann为数字,这一行以及下面(After)n行打印出来..
分类:
系统相关 时间:
2015-04-19 06:38:38
阅读次数:
273
DescriptionYou've gotten ann?×?msheet of squared paper. Some of its squares are painted. Let's mark the set of all painted squares asA. SetAis connect...
分类:
其他好文 时间:
2015-04-17 21:43:12
阅读次数:
266
(转自http://3y.uu456.com/bp-f088f739376baf1ffc4fad40-1.html) MySQL支持大量的列类型,它可以被分为3类:数字类型、日期和时间类型、字符串(字符)类型。 本节首先给出可用类型的一个概 述,并且总结每个 列类型的存储需求,然后提供每个类中的.....
分类:
数据库 时间:
2015-04-15 18:48:44
阅读次数:
159
Anniversary party
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 4825
Accepted: 2732
Description
There is going to be a party to celebrate the 80-th Ann...
分类:
其他好文 时间:
2015-04-15 13:33:28
阅读次数:
97
现阶段,工程应用方方面面都出现了神经网络,小弟现在也正在学习神经网络,有一点猜想。
当前的神经网络大多都是调整自身的权值,从而进行学习。在某一种神经网络的结构之下,通过改进算法,提高收敛速度,或者加深层数,提高性能。在网络的学习过程中,网络自己只是调整它的权值,这个阶段类似的是人类的学习过程。不同结构的网络,可以看成是不同等级的生物。比如单隐含层的BP网,是比较低级的生物;隐含导...
分类:
其他好文 时间:
2015-04-12 09:13:57
阅读次数:
201
https://leetcode.com/problems/n-queens/Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each othe...
分类:
其他好文 时间:
2015-04-11 22:13:56
阅读次数:
137
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:
其他好文 时间:
2015-04-06 12:45:18
阅读次数:
147