码迷,mamicode.com
首页 >  
搜索关键字:except    ( 6601个结果
git提交空文件夹
在空目录下创建.gitignore文件。 文件内写入如下代码,可以排除空目录下所有文件被跟踪:? # Ignore everything in this directory * # Except this file !.gitignore...
分类:其他好文   时间:2015-06-29 20:41:48    阅读次数:521
python 点滴记录12:异常处理
引入异常处理机制,使得运行的程序发生错误时,不至于崩溃。常见格式:try: command1 except: command2当command1执行出错时,就会执行command2。command2通常是自己定义的错误提示或者系统默认的提示。eg:#!/usr/bin/python while1: c=raw_input("input‘c‘continue,otherwis..
分类:编程语言   时间:2015-06-29 20:38:14    阅读次数:186
LeetCode——Single Number II
Description: Given an array of integers, every element appears three times except for one. Find that single one.只有一个出现一次的数字,其他的都出现了3次,找出出现一次的那个数字。pub....
分类:其他好文   时间:2015-06-28 00:02:00    阅读次数:111
iotop源码分析一
#iotop是一个python编写的命令行下图形展示磁盘占用率的工具,学习python,看看他的源码,记录一下 #主程序文件iotop #__future__可调用新版本的一些模块使用 from__future__importprint_function #导入系统模块 importsys #try..except..else用法 #try..except语句来处理..
分类:其他好文   时间:2015-06-27 19:59:51    阅读次数:426
Python_10-异常处理
目录:1.1 python标准异常1.2 简介1.3 try语句 1.3.1 使用try和except语句来捕获异常 1.3.2 该种异常处理语法的规则 1.3.3 使用try跟finally1.4 用raise语句手工引发一个异常1.5 采用traceback(跟踪)模块查看异常1.6 采用...
分类:编程语言   时间:2015-06-27 15:56:13    阅读次数:153
Count Complete Tree Nodes ——LeetCode
Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except...
分类:其他好文   时间:2015-06-25 13:43:02    阅读次数:81
让 CSS 的 "vertical-align: middle" 属性支持 IE 6/7
Here are the examples how to place the elements in the middle of the parent element. The first example works in all new browsers except Internet Explo...
分类:Web程序   时间:2015-06-25 12:08:40    阅读次数:200
LeetCode——Single Number
Description:Given an array of integers, every element appears twice except for one. Find that single one.找出只出现一次的数。public class Solution { public i...
分类:其他好文   时间:2015-06-25 00:06:10    阅读次数:179
sql except 用法,找两个表中非共同拥有的
sql except 用法
分类:数据库   时间:2015-06-24 18:38:41    阅读次数:134
转:delphi异常捕获try except语句 和 try finally语句用法
转:http://www.java123.net/v/936977.html 2015-06-2409:27:48一直写程序都没管他们,也尽量很少用,今天终于想把他给弄个明白,在网上找来,记下!主要是前面小部分,后面的是详细说明(很啰嗦!)一、异常的来源 在Delphi的应用程序中,下列的情况...
分类:Windows程序   时间:2015-06-24 10:30:08    阅读次数:227
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!