我们在昨天预告了一下Python DB API的异常,今天我们来细讲一下: 1、所有异常的超类:StandardError; 2、waring:属于StandardError超类,发生非致命问题所以发的异常; 3、Error:属于StandardError超类,所有错误条件的超类; 4、Interf ...
分类:
数据库 时间:
2018-07-15 23:23:06
阅读次数:
828
## ``` # class (1) name: The fully qualified .NET class name of the persistent class (or interface), including its assembly name. (2) table(optional -... ...
分类:
Web程序 时间:
2018-07-15 21:28:17
阅读次数:
204
0.提出问题 Scrapyd 提供的开始和结束项目的API如下,参考 Scrapyd 改进第一步: Web Interface 添加 charset=UTF-8, 避免查看 log 出现中文乱码,准备继续在页面上进一步添加 START 和 STOP 超链接。 http://scrapyd.readt ...
在绑定网卡到DPDK模块时 报错 :is active. Not modifying ~~~ Routing table indicates that interface 0000:02:01.0 is active. Not modifying ~~~ 解决方法: ~~~ ifconfig dow ...
分类:
其他好文 时间:
2018-07-15 19:45:43
阅读次数:
2513
蓝牙关闭的流程比打开流程要简单,主要就是一些profile的断连以及协议栈相关结构的释放。 这里简单说一下其流程,就直接从协议栈的disable的接口说起了。 简单看下stack_manager_get_interface : 看shut_down_stack_async的具体实现: 这里就是把关闭 ...
分类:
其他好文 时间:
2018-07-15 19:26:29
阅读次数:
250
1.接口: A。学习接口的原因? --解决继承的单根性问题。 --一个类只能继承一个父类,但是可以实现多个接口。 B。接口的语法: public interface 接口名 { } C。介绍接口特性: 1.接口中的属性,全部默认是public static final (全局静态常量) int mo ...
分类:
其他好文 时间:
2018-07-15 17:40:53
阅读次数:
129
0.问题现象和原因 如下图所示,由于 Scrapyd 的 Web Interface 的 log 链接直接指向 log 文件,Response Headers 的 Content-Type 又没有声明字符集 charset=UTF-8,因此通过浏览器查看 log 会出现非 ASCII 乱码。 1.解 ...
分类:
Web程序 时间:
2018-07-15 17:35:03
阅读次数:
523
------------------------------
``` Objective-C
/** 是否iPad */
#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) /** 是否iPad */
#defin... ...
分类:
其他好文 时间:
2018-07-15 00:14:16
阅读次数:
151
接口 Iterablepublic interface java.lang.Iterable11 1public interface java.lang.Iterable所有已知子接口:BeanContext, BeanContextServices, BlockingDeque, Blocking... ...
GPT 分区详解EFI EFI,可扩展固件接口英文名Extensible Firmware Interface 的缩写,是英特尔,一个主导个人电脑技术研发的公司推出的一种在未来的类PC的电脑系统中替代BIOS的升级方案UEFI: UEFI(统一可扩展固件接口)由 UEFI 论坛统一管理,UEFI 论 ...
分类:
其他好文 时间:
2018-07-14 20:38:55
阅读次数:
181