python²éÕÒÖÐÎÄ×Ö·û
#filename Seek.py
import unicodedata
import sys
import os
class Seek():
"""
¹¦ÄÜ:²éÕÒÖÐÎÄ,²¢Ìæ»»³ÉÖ¸¶¨×Ö·û»ò×Ö·û´®
ʹÓ÷½·¨:python½Å±¾Ó÷¨
²ÎÊý˵Ã÷:
-d : ÎļþĿ¼(¾ø¶Ô»òÏà¶Ô·¾¶)(ĬÈÏΪ½Å±¾ËùÔÚĿ¼)
-t : ÎļþÀàÐÍ(ÎļþÃûºó׺,Èç.jsp;.txt)(ĬÈÏΪËùÓÐÎļþ)
-sf : ÊÇ·ñ°üÀ¨×ÓĿ¼(Y|N)(option,ĬÈϲ»°üÀ¨×ÓĿ¼)
-r : Êä³öÎļþÃû(option,ĬÈÏΪ'ChineseCharacter.txt'),λÓڽű¾Ä¿Â¼ÏÂ
-encoding:Îļþ×Ö·û±àÂë(ĬÈÏΪutf-8)
"""
def __init__(self):
"""
³õʼ»¯²éÕÒ³ÌÐò
²ÎÊý½âÎö
"""
#TODO:
self.d = '.'
self.sf = 'N'
self.t = 'ALL'
self.r = 'ChineseCharacter.txt'
self.encoding = 'utf-8'
varL = 0
for ar in sys.argv:
if ar == '-d':
self.d = sys.argv[varL+1]
continue
&
Ïà¹ØÎĵµ£º
ÓÉÓÚ¹¤×÷ÐèÒª£¬ÓÖҪѧϰеĿª·¢ÓïÑÔ-Python£¬ ÓïÑÔѧ¹ý¼¸ÖÖÁË£¬ ¸Ð¾õ»¹ÊÇÓкöàÏàËÆµÄµØ·½£¬ Õâ¸öPython¸Ð¾õ¾Í¸úJavaÓкöàÏàͨµÄµØ·½£¬ Ê×ÏÈÄã¿ÉÒÔÔÚEclipseÉÏͨ¹ýÅäÖúóÀ´¿ª·¢Python¡£ÕâÀïÎÒÌý´ÓÁËÀÏ´óµÄ½¨Ò飬ÅäÖÃÁËÒ»¸öFlexBuilder ×÷ΪPythonµÄIDE½øÐпª·¢¡£
Ŀǰ¸Õ¿ªÊ¼Ñ§Ï°PythonµÄ»ù±¾Óï·¨£¬ ½ñÌìÖ÷Òª¿´ÁËÒ»ÏÂPyth ......
Python http://www.python.org/download/ wxPython http://www.wxpython.org/download.php#binaries Vpython http://vpython.org/contents/download_windows.html Matplotlib http://sourceforge.net/projects/matplotlib/files/matplotlib/ PyGlet http://www.pyglet.org/download.html PyGame http://www.pyga ......
import win32com.client
store = win32com.client.Dispatch('CAPICOM.Store')
# ´ò¿ªÖ¤Êé´æ´¢Çø
# 2 -> CAPICOM_CURRENT_USER_STORE
# 0 -> CAPICOM_STORE_OPEN_READ_ONLY
store.Open(2, "My", 0)
# ²éÕÒÓÐЧ֤Êé
# 12 -> CAPICOM_CERTIFICATE_FIND_KEY_USAGE
# 0x00000080 -> CAPICOM_DIGITAL_SIGNATU ......
#coding=utf-8
from math import sqrt,cos,sin
import Image, ImageDraw
class SpireShape(object):
def __init__(self, draw):
self.draw = draw
self.line_width = 1
& ......
[Ô´´]PythonÄÚ´æÐ¹Â©²é¿´Æ÷ʵÏÖ
by AKara 2009-04-23 @ http://blog.csdn.net/akara @ akaras@163.com
---------------------------------------------------------------------
Ϊ¸üºÃ¶¨Î»PythonÄÚ´æÐ¹Â©Çé¿ö£¬Ð´ÁËÒ»¸öеÄPythonÄÚ´æÐ¹Â©²é¿´Æ÷Ä£¿é¡£
Ä£¿éÓÐÈçϹ¦ÄÜ£º
* ½«ËùÓ ......