1.JavaScript 使用误区 1.1 赋值运算符应用错误 在 JavaScript 程序中如果你在 if 条件语句中使用赋值运算符的等号 (=) 将会产生一个错误结果, 正确的方法是使用比较运算符的两个等号 (==)。 if 条件语句返回 false (是我们预期的)因为 x 不等于 10: ...
分类:
编程语言 时间:
2018-03-04 20:05:08
阅读次数:
172
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything ...
分类:
其他好文 时间:
2018-03-03 18:20:26
阅读次数:
146
主要知识点: bool组合查询 bool和filter组合查询 bool,filter嵌套查询 直接用filter查询,并以_score排序 一、bool组合查询 GET /website/article/_search { "query": { "bool": { "must": [ { ... ...
分类:
其他好文 时间:
2018-02-26 11:17:28
阅读次数:
175
主要知识点 初步了解mapping 一,准备数据 插入几条数据,让es自动为我们建立一个索引 PUT /website/article/1 { "post_date": "2017-01-01", "title": "my first article", "content": "this is my... ...
分类:
移动开发 时间:
2018-02-25 11:21:41
阅读次数:
239
Operating System: Ubuntu 16.04 Web Server ? most often used Web Server software is freely available Apache Server. Download Apache for free here ? htt ...
分类:
Web程序 时间:
2018-02-18 16:23:06
阅读次数:
207
"proxy website" "reference example" ...
分类:
其他好文 时间:
2018-02-11 18:03:56
阅读次数:
139
“拜占庭容错”、“拜占庭将军问题” 什么是拜占庭将军问题 接触区块链的同学,多少都听说过拜占庭将军问题,经常看到或听到某某区块链使用某某算法解决了拜占庭将军问题,那么究竟什么是拜占庭将军问题呢? 什么是拜占庭将军问题 也被称为“拜占庭容错”、“拜占庭将军问题”。拜占庭将军问题是Leslie Lamp ...
分类:
其他好文 时间:
2018-02-10 22:41:30
阅读次数:
250
python字符串连接的方法,一般有以下三种:方法1:直接通过加号(+)操作符连接website=& 39;python& 39;+& 39;tab& 39;+& 39; com& 39;方法2 python字符串连接的方法,一般有以下三种: 方法1:直接通过加号(+)操作符连接 1 website ...
分类:
编程语言 时间:
2018-02-06 20:16:11
阅读次数:
153
网站源码地址:https://github.com/MyCreazy/BasicOperateWebSite.git 使用maven搭建网站的时候,记得选用war包格式,有时候maven包没有引用进来,需要手动添加引用,这里需要注意,如下截图: 1.新建Maven网站 创建步骤如下: 选择war,就 ...
分类:
Web程序 时间:
2018-02-05 16:06:23
阅读次数:
220
爬取豆瓣推荐书籍页的图书的图片保存到本地#-*-codingUTF-8-*-importreimportrequestsimportosdefgetsite(url):website=requests.get(url)url="https://book.douban.com/tag/%E7%BC%96%E7%A8%8B"website=requests.get(url)links=re.finda
分类:
编程语言 时间:
2018-02-03 13:01:39
阅读次数:
181