1.any()函数 any(iterable)->bool 当迭代器中有一个是Ture,则返回Ture;若interable=NUll,则返回False. >>> any([1,0])True>>> any([0,0])False>>> any([])False>>> any([1,0,0])Tru ...
分类:
编程语言 时间:
2017-04-02 00:02:33
阅读次数:
184
package.json Git urls can be of the form: The commit-ish can be any tag, sha, or branch which can be supplied as an argument to git checkout. The defa ...
分类:
其他好文 时间:
2017-04-01 15:38:17
阅读次数:
442
原文转自 http://blog.sina.com.cn/s/blog_4bdf819f0100vryh.html 端口号为0~65535 端口概念 在网络技术中,端口(Port)大致有两种意思:一是物理意义上的端口,比如,ADSL Modem、集线器、交换机、路由器用于连接其他网络设备的接口,如R ...
分类:
其他好文 时间:
2017-04-01 15:26:02
阅读次数:
261
The VM session was closed before any attempt to power it on. 返回 代码:E_FAIL (0x80004005)组件:SessionMachine界面:ISession {12f4dcdb-12b2-4ec1-b7cd-ddd9f6c5bf ...
分类:
其他好文 时间:
2017-04-01 09:39:28
阅读次数:
343
上一章我们讲了如何启动一个dotweb程序,本篇文章将介绍如何注册路由。 router是dotweb用来管理路由的结构体,它提供了一些关于路由操作函数。 在上一篇文章中我们讲了dotweb.New()的用处,HttpServer负责处理请求,管理路由、session、中间件等等功能。稍后我会介绍se ...
分类:
编程语言 时间:
2017-04-01 01:14:28
阅读次数:
1026
1.stack overflow 上大神的描述(浏览的网页没记住): A "callback" is any function that is called by another function which takes the first function as a parameter. 2.看了 ...
分类:
其他好文 时间:
2017-03-31 19:08:49
阅读次数:
462
在django中内置了form类和model类,当页面中的form值和model字段值完全一样时,此时可以通过model生成一个完全一样的form,Django中的modelForm就因此而生。 目标: 定义Author表,通过modelform提交数据到数据库 创建工程及app 编辑models. ...
分类:
其他好文 时间:
2017-03-31 18:58:19
阅读次数:
153
当你的selenium WebDriver 启动IE11报这个错时:Unable to find element on closed window (WARNING: The server did not provide any stacktrace information),通过Google解决了 ...
为了解决多线程安全问题在 Java 5.0 之前,协调共享对象的访问时可以使用的机制只有 synchronized 和 volatile 。Java 5.0 后增加了一些新的机制,但并不是一种替代内置锁的方法,而是当内置锁不适用时,作为一种可选择的高级功能。 隐式锁 synchronized 显示锁 ...
分类:
编程语言 时间:
2017-03-31 00:08:32
阅读次数:
214
简介 随着Web开发的不断开发, 低耦合的需求被提上了日程, 催生出了前后端分离的方案. 前后端分离使前端和服务器端相互独立, 细化前后端开发, 于是近几年API架构风行. RESTful架构由Roy Fielding在一篇博士论文中提出. `REST, 即Representational Stat ...