metallica_1860的博客
metallica_1860 · 共 32 篇文章
手动备份svn
package com.tool; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.FileUtils; public class FileUtil { public static void main(String[] args) { start("E:\\web_space\\***", "E:\\g\\trunk\\***"); start("E:\\web_space\\***"…
2012-05-18 13:34 · Java · 评论(0)
python是个什么东西---python---python string和PyQt的QString的区别
python string和PyQt的QString的区别 以下在Python2.6和PyQt4.4.4 for Python2,6环境下讨论: Python中有两种有关字符的类型:Python string object和Python Unicode object。主要使用Python string object进行数据输入输出。 PyQt中与之相对应的字符有关类 python string和PyQt的QString的区别 以下在Python2.6和PyQt4.4.4 for Python2,6环境下讨论: Python中有两种有关字符的类型:Python string object和Py…
2012-02-15 09:00 · Python · 评论(0)
hiyou
2010/11/23、24、26、29 \150.00 2010/11/24 \20.00 2010/11/30、12/1、2、4、6、7 \208.70 2010/12/6 \40.00 2010/12/8、9、10、13、14、15 \201.50 2010/12/16、20、21 \120.90 2010/12/22、23、25、27、28、29 \202.80 2010/12/30 \45.40 2010/12/25 \12.00 \1,001.30
2011-01-12 19:32 · Java · 评论(0)
python是个什么东西---python---处理字符串,Python与JAVA对比
JAVA已经很熟悉了,但是python的处理字符串还是有些出入的地方,总结一下. JAVA: String str = "1234567890abcdefghijklmnopqrstuvwxyzabc"; System.out.println("是否以xx开始 : " + str.startsWith("1")); System.out.println("是否以xx结束 : " + str.endsWith("c")); System.out.println("获得某子串 : " + str.substring(0, 10)); System.out.println("检索子串位置 : " …
2010-09-09 13:26 · Python · 评论(0)
python是个什么东西---python---PyQt4日语学习工具--单词/文法检索(附下载)
代码就不上了,因为还在扩展,所以每次都随着更新也挺痛苦的... 具体操作: 1.单语检索 日文-->中文 (1)はい:检索出所有是恰好就是"はい"的单词 (2)*はい:检索出所有以"はい"结尾的单词 (3)はい*:检索出所有以"はい"开头的单词 (4)*はい*:检索出所有中间带有"はい"的单词 (注:"入"或者"入い"这样的也可以作为检索条件.) 2.单语检索 中文-->日文 这个就直接输入中文吧,当然,你输入的中文意思越详细,查询出来的就越准确. 3.文法检索 日文-->中文 文法检索只要输入关键字即可,不像单语检索那样 4.文法检索 中文-->日文 同上 当然,由于数据库的功能和目前技术…
2010-09-07 11:20 · Python · 评论(0)
eclipse.ini
-showsplash com.genuitec.myeclipse.product --launcher.XXMaxPermSize 512m -vmargs -Xms256m -Xmx512m -Duser.language=en -XX:PermSize=256M -XX:MaxPermSize=512M
2010-08-03 14:34 · Java · 评论(0)
python是个什么东西---python---PyQt4自备SQLite连接与查询
# coding:UTF-8 import os import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtSql import * from ExcelTool import ExcelHandler def insertData(filenames): query = QSqlQuery() for filename in filenames: eh = ExcelHandler() results = eh.read_xls(filename) for result in results: …
2010-08-02 14:33 · Python · 评论(0)
python是个什么东西---pyExcelerator---解析和生成不带样式的xls
# coding: UTF-8 from pyExcelerator.ImportXLS import parse_xls from pyExcelerator import Workbook import string class ExcelHandler(): #读取excel文件的内容,返回一个包含行列的集合 #@param file_full_name: #@return: sheet_list[[0,[a,a,a]],[1,[b,b,b]],[2,[c,c,c]],[3,[d,d,d]]] def read_xls(self, file_full_name): results = …
2010-07-27 09:10 · Python · 评论(0)
python是个什么东西---python---python的字符处理
# -*- coding:UTF-8 -*- """字符处理的工具: 判断unicode是否是中文,日文,数字,英文,或者其他字符。 全角符号转半角符号。""" def is_number(self, uchar): """判断一个unicode是否是数字""" if uchar >= u'\u0030' and uchar <= u'\u0039': return True else: return False def is_other(self, uchar): """判断是否非汉字,数字和英文字符""" if not (self.is_unicode(uchar) or self.is…
2010-07-26 09:26 · Python · 评论(0)
python是个什么东西---python---py2exe打包后屏蔽控制台
1.XXX.py # coding: UTF-8 import os from pegasusswf.HttpTool import Server import time import ctypes if __name__ == "__main__": whnd = ctypes.windll.kernel32.GetConsoleWindow() if whnd != 0: ctypes.windll.user32.ShowWindow(whnd, 0) ctypes.windll.kernel32.CloseHandle(whnd) server = Server() server.st…
2010-07-19 15:58 · Python · 评论(0)
python是个什么东西---python---pyqt做的一个浏览器
之前一直苦苦纠结于QWebView...可惜未果... 后来无意发现了QAx系列,试了一下~感觉很爽~ 可惜PyQt在网上的例子太少太少了...
2010-07-15 09:48 · Python · 评论(0)
python是个什么东西---python---python的httpsever
# -*- coding:UTF-8 -*- import os import BaseHTTPServer import time import threading import urlparse class ServerHandler(BaseHTTPServer.BaseHTTPRequestHandler): # def __init__(self,request, client_address, server): # BaseHTTPServer.BaseHTTPRequestHandler.__init__(self,request, client_address, server…
2010-07-13 10:14 · Python · 评论(0)
python是个什么东西---python---生成和读取X进制文件
# -*- coding: utf-8 -*- #'./data.pgd' def content2File(fileFullName, content): writer = open(fileFullName, 'wb') writer.write(content.encode('hex').encode('base64').encode('bz2')) writer.close() def file2Content(fileFullName): reader = open(fileFullName, 'rb') uncompressedData = '' while True: s = …
2010-07-07 15:06 · Python · 评论(0)