码迷,mamicode.com
首页 >  
搜索关键字:except    ( 6601个结果
SHOPING 购物(学了老男孩视频写的)​
#!/usr/bin/pythonimportsyslogimportsysthis_year=2015product=[‘apple‘,‘coffee‘,‘pc‘,‘rebot‘,‘clothes‘,‘licai‘]#创建数组price=[4999,30,8000,100000,1000,500]#创建数组qingdan=[]#创建数组whileTrue:try:gongz=int(raw_input(‘\033[33;1mpleaseinputyougz:\033[0m‘).str..
分类:其他好文   时间:2015-09-18 12:08:18    阅读次数:202
python Exception
1.except:用来捕捉异常,如果没有捕捉到,则向上层exception传递2.finally:用来保证其代码一定会执行,可以做收尾工作,比如关闭文件等等。3.在with as 中,4.try语句执行流程, 首先程序标识try语句启动时候的程序环境(便于后面恢复)。 1.遇到异常 1.跳...
分类:编程语言   时间:2015-09-18 11:54:49    阅读次数:191
[LeetCode 238] Product of Array Except Self
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Solve it without division and in O(n)....
分类:其他好文   时间:2015-09-17 08:48:02    阅读次数:145
any
from urllib2 import Request, urlopen, URLError, HTTPError req = Request('http://bbs.csdn.net/callmewhy') try: response = urlopen(req) except...
分类:其他好文   时间:2015-09-16 19:49:50    阅读次数:182
HihoCoder - Thare's roads.
#1000 : A + B Pythonwhile True: try: a,b = raw_input().split() print int(a) + int(b) except EOFError: breakView Code
分类:其他好文   时间:2015-09-16 18:03:10    阅读次数:146
linux /boot FHS翻译
/boot: Static files of the boot loader Purpose: This directory contains everything required for the boot process except configuration files not ne...
分类:系统相关   时间:2015-09-15 21:55:54    阅读次数:318
linux shell except tcl login ssh Automatic interaction
本程序是使用except自动登入远程目标机,并且执行commands文件中的命令给定的命令,可以对多个目标机进行测试,目标机的IP保存在shell的数组中,目前只支持相同的账户和密码。
分类:系统相关   时间:2015-09-15 16:20:27    阅读次数:235
[LeetCode] Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ...
分类:其他好文   时间:2015-09-12 23:37:07    阅读次数:196
Product of Array Except Self
Given an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all the elements ofnumsexceptnums[i].Solv...
分类:其他好文   时间:2015-09-12 14:46:58    阅读次数:155
SQL EXCEPT INTERSECT
EXCEPT是指在第一个集合中存在,但是不存在于第二个集合中的数据。INTERSECT是指在两个集合中都存在的数据。create table t1(id int,mark char(2))gocreate table t2(id int,mark char(2))goinsert into t1 ....
分类:数据库   时间:2015-09-12 10:46:00    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!