>>> d = {'a':1}>>> print '%s' % 1,d1 {'a': 1}>>> print '%s %s' % 1,dTraceback (most recent call last): File "", line 1, in TypeError: not enough argu....
分类:
编程语言 时间:
2014-09-28 04:29:10
阅读次数:
203
android4.4\frameworks\base\packages\SystemUI\src\com\android\systemui\recent\RecentsActivity.java
此函数是打开最近应用点击空闲地方跳转
public void dismissAndGoHome() {
if (mRecentsPanel != null) {
...
分类:
移动开发 时间:
2014-09-25 16:12:09
阅读次数:
322
------
什么是异常:Python用异常对象(exception object)来表示异常情况.如果异常信息未被处理或捕捉。
程序就会用回潄来终止执行
>>> 1/0
Traceback (most recent call last): #Traceback: 一种错误信息
File "", line 1, in ?
ZeroDivisionError: integer division or modulo by zero
每个异常都是一些类的实例,这些实例可以被引发,并且可以用很...
分类:
编程语言 时间:
2014-09-24 22:54:38
阅读次数:
350
1.安装与配置 Setup oh-my-zshshould work with any recent release of Zsh. The minimum recommended version is 4.3.9. If not already installed, you can install Zsh using the command-line. The automatic...
分类:
其他好文 时间:
2014-09-22 16:22:53
阅读次数:
301
最简单的DFS
Lake Counting
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 20516
Accepted: 10338
Description
Due to recent rains, water has pooled in various pla...
分类:
其他好文 时间:
2014-09-20 10:08:07
阅读次数:
259
同Java一样,Pyton异常对象来表示异常情况。遇到错误后,引发异常,如果异常对象并未对处理或捕捉,程序就会用所谓的回溯(Traceback)来终止执行;
>>> 1/0
Traceback (most recent call last):
File "", line 1, in
ZeroDivisionError: division by zero
程序可以通过rais...
分类:
编程语言 时间:
2014-09-19 17:37:55
阅读次数:
251
Introduction to Deep Learning AlgorithmsSee the following article for a recent survey of deep learning:Yoshua Bengio, Learning Deep Architectures for ...
分类:
其他好文 时间:
2014-09-19 09:56:55
阅读次数:
240
In the recent days, since the overwork made me exhaused, on arrival to home I will go to bed, which leads to loss of blogs that should have been written in the past days.
Now I make a summay to all...
分类:
数据库 时间:
2014-09-19 02:20:04
阅读次数:
323
In recent years Linux distributions started treating security more seriously. Out of many security features two are directly affecting C programmers:-...
分类:
其他好文 时间:
2014-09-18 14:31:34
阅读次数:
589
assert语句:用以检查某一条件是否为True,若该条件为False则会给出一个AssertionError。用法:assert type(x)=int and x>=0如果不满足后面的expression,则会弹出Traceback (most recent call last): File ....
分类:
编程语言 时间:
2014-09-15 19:16:59
阅读次数:
599