https://msdn.microsoft.com/en-us/library/bb300779(v=vs.100).aspx ...
分类:
其他好文 时间:
2016-07-07 12:25:44
阅读次数:
112
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 ...
分类:
其他好文 时间:
2016-07-07 00:38:48
阅读次数:
157
异常处理实例 异常处理类型 多类型异常捕获分别处理 try except 完整代码块 自定义触发错误 可定义各种错误类型 断言 ...
分类:
编程语言 时间:
2016-07-06 21:40:11
阅读次数:
197
间接原则 All problems in computer science can be solved by another level of indirection, except of course for the problem of too many indirections. ——Davi ...
分类:
其他好文 时间:
2016-07-05 23:57:04
阅读次数:
358
Single Number Given 2*n + 1 numbers, every numbers occurs twice except one, find it. Given 2*n + 1 numbers, every numbers occurs twice except one, fin ...
分类:
其他好文 时间:
2016-07-04 13:24:00
阅读次数:
160
Static in C++ Two basic meanings Static Storage --allocated once at a fixed address Visibility of a name --internal linkage Don't use static except in ...
分类:
编程语言 时间:
2016-07-03 14:19:40
阅读次数:
165
一、异常处理 1、异常基础 在编程过程中为了增加友好性,在程序出现bug时一般不会将错误信息显示给用户,而是现实一个提示的页面。 try: pass except Exception as e: pass 需求:将用户输入的两个数字相加 1 while True: 2 num1 = raw_inpu ...
分类:
编程语言 时间:
2016-07-02 13:04:51
阅读次数:
207
238. Product of Array Except Self Total Accepted: 51070 Total Submissions: 116543 Difficulty: Medium Given an array of n integers where n > 1, nums, r ...
分类:
其他好文 时间:
2016-07-01 21:20:55
阅读次数:
210
#coding:utf-8
importsocket
importthreading
importtime
classSkPort(threading.Thread):
def__init__(self,ip,port):
threading.Thread.__init__(self)
self.ip=ip
self.port=port
defrun(self):
sk=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sk.settimeout(1000)
#..
分类:
编程语言 时间:
2016-07-01 16:37:44
阅读次数:
178
1.功能:显示或者修改主机名2.语法:hostname[-v][-a][--alias][-d][--domain][-f][--fqdn][-A][--all-fqdns][-i][--ip-address][-I][--all-ip-addresses][--long][-s][--short][-y][--yp][--nis]hostname[-v][-Ffilename][--filefilename][hostname]3.参数:-a,--alias显示别..
分类:
系统相关 时间:
2016-06-30 23:40:24
阅读次数:
296