3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El...
分类:
其他好文 时间:
2014-07-09 15:48:57
阅读次数:
223
//// ViewController.m// helloworld//// Created by apple on 14-7-8.// Copyright (c) 2014年 戴维营教育. All rights reserved.//#import "ViewController.h"@inter...
分类:
其他好文 时间:
2014-07-09 15:17:12
阅读次数:
215
import osfor root, dirs, files in os.walk("./"): print root print dirs print files功能:递归遍历某路径下的文件夹,文件返回的是一个三元tupple(dirpath, dirnames, filenames),di...
分类:
编程语言 时间:
2014-07-09 15:08:55
阅读次数:
195
Step 1Go to start button all Programs -> Microsoft SQL SERVER 2008 -> SQL SERVER Management Studio -> Right click -> Run as Administrator.Step 2Click ...
分类:
数据库 时间:
2014-07-09 14:57:42
阅读次数:
223
Python学习(3)切片(Slice):根据索引范围取出字符串里面的内容,比如: l=range(100) l[:8] [0, 1, 2, 3, 4, 5, 6, 7] l[:10:2] [0, 2, 4, 6, 8]list、tuple、set 、字符串都可以做切片操作迭代(iteration)...
分类:
编程语言 时间:
2014-07-09 14:48:16
阅读次数:
160
When you use an arithmetic operator, the operands go through two conversions.Integer promotions: If int can represent all values of the type, then the...
分类:
编程语言 时间:
2014-07-09 13:46:00
阅读次数:
278
HP-Socket 是一套通用的高性能 TCP/UDP 通信框架,包含服务端组件、客户端组件和 Agent 组件,广泛适用于各种不同应用场景的 TCP/UDP 通信系统,提供 C/C++、C#、Delphi、E(易语言)、Java、Python 等编程语言接口。HP-Socket 对通信层实现完全封...
分类:
其他好文 时间:
2014-07-09 13:32:51
阅读次数:
172
Python在编程领域的占有率一直处于稳步上升之中,根据最新的数据,Python排名第七。前六名分别是Java,C,VB,C++,PHP和Perl. 作为一个很年轻的语言,Python的位置已经相当令人振奋了。随着微软将Python纳入.Net 平台,相信Python的将来会更加强劲发展。Pytho...
分类:
编程语言 时间:
2014-07-09 13:16:00
阅读次数:
188
文件和素材
打开文件
open函数用来打开文件,语法如下:
open([name[,mode[,buffering]])
open函数使用一个文件名作为唯一的强制参数,然后返回一个文件对象。模式(mode)和缓冲(buffering)参数都是可选的。
>>> f=open(r'D:\software(x86)\Python27\README.txt')
如果文件不存在,则出...
分类:
编程语言 时间:
2014-07-09 10:45:07
阅读次数:
151
#coding=utf-8
import MySQLdb
import sys
import os
# 李红颖编写,用户湖南CLV数据分割使用
print 'dump database:',sys.argv[1] ##传入的第一个参数,数据库名称
print 'dump table:',sys.argv[2] ##传入的第二个参数,表名称
dbname=sys.argv[1]
tablen...
分类:
数据库 时间:
2014-07-09 09:35:51
阅读次数:
236