1. 1 1,Alex Li,22,13651054608,IT,2013-04-01 2 2,Jack Wang,30,13304320533,HR,2015-05-03 3 3,Rain Liu,25,1383235322,Saies,2016-04-22 4 4,Mack Cao,40,135 ...
分类:
其他好文 时间:
2017-06-24 17:25:45
阅读次数:
366
在Xshell5中编写int main(int argc,char** argv)时, 出现-bash:syntax error near unexpected token '(' ; 可是我是按照Linux语句编写的,其他代码没有出错; 检查发现, Xshell5对应的Linux版本是Linux5 ...
分类:
其他好文 时间:
2017-06-23 16:24:34
阅读次数:
281
看了网上文章,说的都挺好的,给cursor.execute传递格式串和参数,就能防止注入,但是我写了代码,却死活跑不通,怀疑自己用了一个假的python 最后,发现原因可能是不同的数据库,对于字符串的占位定义不同,这段话:Note that the placeholder syntax depend... ...
分类:
数据库 时间:
2017-06-23 13:36:44
阅读次数:
269
变量可以指向函数,函数的参数能接收变量,那么一个函数就可以接收另一个函数作为参数,这种函数就称之为高阶函数。 1 2 3 4 5 6 def add(x,y,f): return f(x) + f(y) res = add(3,-6,abs) print(res) 1 2 3 4 5 6 def a ...
分类:
其他好文 时间:
2017-06-23 11:43:46
阅读次数:
109
Rust is another compiling language that may replace the position of C/C++ in server filed. It runs fast and can be written easily comparing with Pytho ...
分类:
其他好文 时间:
2017-06-23 10:35:06
阅读次数:
124
【启动】 启动代码格式:nginx安装目录地址 -c nginx配置文件地址例如: [root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 【停止】nginx的停止有三种方式: ...
分类:
其他好文 时间:
2017-06-22 13:13:21
阅读次数:
126
使用navcat在导入别人发的mysql数据的时候,报了下面这个错误: [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version ...
分类:
数据库 时间:
2017-06-21 21:58:11
阅读次数:
264
背景: 当前主流的图片剪裁主要有两种实现方式。 1:flash操作剪裁。2:利用js和dom操作剪裁。 目前看来这个剪裁主要还是先通过前端上传图片到服务器,然后前端操作后把一些坐标和大小数据传到后台, 然后后台来执行剪裁。我一直觉得这样有很多问题: 1.必须要先把图片上传到服务器然后才能执行后面的操 ...
分类:
Web程序 时间:
2017-06-21 14:11:42
阅读次数:
197
参考: http://blog.csdn.net/u012992462/article/details/47042535 http://www.cnblogs.com/kissdodog/p/5419923.html 内容: 通常JSON时间一般是这样的格式。 /Date(1436595149269 ...
分类:
Web程序 时间:
2017-06-21 11:29:34
阅读次数:
570
Shell调试: 进入项目所在目录,scrapy shell “网址” 如下例中的: scrapy shell http://www.w3school.com.cn/xml/xml_syntax.asp 可以在如下终端界面调用过程代码如下所示: 相关的网页代码: 我们用scrapy来爬取一个具体的网 ...
分类:
编程语言 时间:
2017-06-20 22:28:01
阅读次数:
271