1.工厂模式#encoding=utf-8__author__ = 'kevinlu1010@qq.com'class ADD(): def getResult(self,*args): return args[0]+args[1]class SUB(): def getR...
分类:
编程语言 时间:
2014-07-16 22:56:35
阅读次数:
213
今天项目需要用到生成xml日志,种类比较多,果断自己写了个,在处理结束时,有点费力,贴出来分享一下,如果有什么错误,请指正:测试数据: $data = array('books',array('book', array('bookname','平凡的世界'), array('author',...
分类:
其他好文 时间:
2014-07-16 21:03:09
阅读次数:
125
1 package io.FileOp; 2 import java.io.*; 3 /** 4 * 删除文件或者删除目录 5 * @author www.tfgzs.net 6 */ 7 public class Delete { 8 9 public static void m...
分类:
其他好文 时间:
2014-07-11 21:21:12
阅读次数:
221
只要用到MySQLdb,使用时请先安装MySQLdb,百度上可以下载!#coding=utf-8'''@author:使用python操作MySQL数据库'''import MySQLdb#import MySQLdb.cursorsconn=MySQLdb.connect(user='root',...
分类:
数据库 时间:
2014-07-11 21:12:45
阅读次数:
265
1.创建一个文件,在目录/etc/init/下面#sudo vim /etc/init/turnserver.conf2.添加如下内容description "turn server"author "Haijunzhu"# Saves log to /var/log/upstart/easyrtc....
分类:
其他好文 时间:
2014-07-11 20:19:23
阅读次数:
398
# -*- coding: utf-8 -*-'''Created on 2013-11-26@author: Chengshaoling'''import win32clipboard as w32import win32conclass OperateClipboard(object): def...
分类:
编程语言 时间:
2014-07-11 18:26:12
阅读次数:
245
*Author:Yuanhonglong *Date:2013-11-29 *1948281915package mine.file.Read_Write;import java.io.BufferedReader;import java.io.File;import java.io.FileIn....
分类:
编程语言 时间:
2014-07-11 12:27:49
阅读次数:
227
" /etc/vimrc (configuration file for vim only)" author: Klaus Franken " author: Werner Fink " author: Florian La Roche " version: 00/01/2...
分类:
其他好文 时间:
2014-07-11 12:09:51
阅读次数:
331
#coding=utf-8'''@author:简单遍历目录删除文件的小程序'''import os#查找文件操作def findFile(path): fileList=[] for rootPath,subRoot,fileName in os.walk(path): ...
分类:
编程语言 时间:
2014-07-11 10:59:54
阅读次数:
178
package com.lengxiaocai.myutil.screentool;
import android.content.Context;
/**
*
* @ClassName: ScreenTool
*
* @Description: 屏幕像素检测
*
* @author yazhizhao
*
* @date 2014-5-6 上午11:47:07
*/...
分类:
移动开发 时间:
2014-07-10 23:40:58
阅读次数:
340