#! /usr/bin/python#! -*- coding:utf-8 -*-import osdef SplitFile(cnt): path='e:\data' filename=path+'\\qunti_deal.txt' os.chdir(path) i=0 n=0 siz...
分类:
其他好文 时间:
2014-07-02 21:15:42
阅读次数:
228
#region File Header & Copyright Notice/* * Copyright (C) 2014 XXX, INC. All Rights Reserved. * THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MA...
分类:
其他好文 时间:
2014-07-02 10:07:59
阅读次数:
221
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
分类:
其他好文 时间:
2014-07-02 10:01:21
阅读次数:
173
netstat 命令详解netstat用于显示与IP、TCP、UDP和ICMP协议相关的统计数据,一般用于检验本机各端口的网络连接情况。常用:netstat -anp | grep 进程名、pid进程号、端口号参数一般用的:-aup-anp-anltp-ano参数含义介绍-a (all)显示所有连接...
分类:
Web程序 时间:
2014-07-02 09:57:25
阅读次数:
387
如何使用Python脚本对图片的黑边进行裁切...
分类:
编程语言 时间:
2014-07-02 09:13:08
阅读次数:
720
The Direct I/O (Load/Store) module(即是LSU) serves as the source of all outgoing direct I/O packets(LSU用于配置发起数据读/写的SRIO设备端,发起端发送Direct IO包). With direct I/O, the RapidIO packet contains the specific add...
分类:
其他好文 时间:
2014-07-02 08:48:15
阅读次数:
472
需要实现在打印 WARN, ERROR, CRITICAL的log时显示函数/方法名和行号,在INFO级不显示
import logging
def AltCustomFormatter(logging.Formatter):
def __init__(self, fmt=None, datefmt=None):
super(AltCustomFormatter, self).__ini...
分类:
编程语言 时间:
2014-07-02 08:44:51
阅读次数:
432
标准库:一些最爱
集合、堆和双端队列
集合
集合Set类位于sets模块中。
>>> range(10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> set(range(10))
set([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
集合是由序列(或其他可迭代的对象)构建的。主要用于检查成员资格,因此,副本是被忽略的:
>>> r...
分类:
编程语言 时间:
2014-07-02 08:44:12
阅读次数:
206
Accessors
存取方法
All instance variables are private in Objective-C by default, so you should use accessors to get and set values in most cases. There are two syntaxes. This is the traditional 1.x syntax:
OC中所有的实例变量默认是私有的,所以多数情况下你应该使用访问器来获得和设置实例变量的值。访问器有...
分类:
其他好文 时间:
2014-07-02 08:39:04
阅读次数:
231
JFinal框架是基于java语言的急速WEB+ORM框架,其设计核心是开发迅速,代码量少,学习简单,功能强大,轻量级,已扩展,Restful。在拥有java语言所有优势的同时再拥有python,php等动态语言的开发效率,让你有足够多的时间去做其他的事。
JFinal有如下主要特点:
MVC架构,设计精巧,使用简单
遵循COC原则,零配置,无xml
独...
分类:
编程语言 时间:
2014-07-02 07:16:12
阅读次数:
243