Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Eclipse+PyDev = Python±à¼­Æ÷£¬

http://www.ibm.com/developerworks/cn/opensource/os-cn-ecl-pydev/Á¬½ÓÕâ¸öÍøÖ·£¬²»»áÈÃÄãʧÍûµÄ¡£
PyDev ¼ò½é
2003Äê7ÔÂ16ÈÕ£¬ÒÔ Fabio Zadrozny ΪÊ×µÄÈýÈË¿ª·¢Ð¡×éÔÚÈ«Çò×î´óµÄ¿ª·ÅÔ´´úÂëÈí¼þ¿ª·¢Æ½Ì¨ºÍ²Ö¿â SourceForge ÉÏ×¢²áÁËÒ»¿îеÄÏîÄ¿£¬¸ÃÏîĿʵÏÖÁËÒ»¸ö¹¦ÄÜÇ¿´óµÄ Eclipse²å¼þ£¬Óû§¿ÉÒÔÍêÈ«ÀûÓà Eclipse À´½øÐÐ Python Ó¦ÓóÌÐòµÄ¿ª·¢ºÍµ÷ÊÔ¡£Õâ¸öÄܹ»½« Eclipseµ±×÷ Python IDE µÄÏîÄ¿¾ÍÊÇ PyDev¡£
PyDev ²å¼þµÄ³öÏÖ·½±ãÁËÖÚ¶àµÄ Python ¿ª·¢ÈËÔ±£¬ËüÌṩÁËһЩºÜºÃµÄ¹¦ÄÜ£¬È磺Óï·¨´íÎóÌáʾ¡¢Ô´´úÂë±à¼­ÖúÊÖ¡¢Quick Outline¡¢Globals Browser¡¢Hierarchy View¡¢ÔËÐк͵÷ÊԵȵȡ£»ùÓÚ Eclipse ƽ̨£¬ÓµÓÐÖî¶àÇ¿´óµÄ¹¦ÄÜ£¬Í¬Ê±Ò²·Ç³£Ò×ÓÚʹÓã¬PyDev µÄÕâЩÌØÐÔʹµÃËüÔ½À´Ô½Êܵ½ÈËÃǵĹØ×¢¡£
Èç½ñ£¬¸ÃÏîÄ¿»¹ÔÚ²»¶ÏµØÍƽøеķ¢²¼°æ±¾£¬Ä¿Ç°×îеİ汾ÊÇ2008Äê10ÔÂ3ÈÕ·¢²¼µÄ1.3.22¡£±¾ÎĽÓÏÂÀ´½«½éÉÜ PyDev µÄ°²×°ÅäÖ÷½·¨£¬²¢ÔÚ´Ë»ù´¡ÉÏÏêϸ½éÉÜÈçºÎʹÓà PyDev°Ñ Eclipse µ±×÷ Python IDE ½øÐÐPythonµÄ¿ª·¢ºÍµ÷ÊÔ¡£


Ïà¹ØÎĵµ£º

Python IDE±È½ÏÓëÍƼö¡¾z¡¿

 ÎÒÏȸøÒ»¸ö³õ²½µÄ±í¸ñ°É£¬´ó¼ÒÈç¹ûÓÐʲôÒâ¼û£¬»òÓв¹³ä£¬»¶Ó­Ìá³ö¡£ÓÐЩÎÒûÓÐÓùý£¬ÏȲ»Ð´ÁË¡£
ÒÔÏÂÊÇÎÒʹÓùýµÄpython IDE:
     
³ýÁËPythonWin, VisualPythonÖ»Ö§³ÖWindows£¬ÆäËü¶¼ÖÁÉÙÖ§³ÖWin/Linux/Mac¡£
¸÷ÏÒ壺
×Ô¶¯²¹È«£º±äÁ¿/º¯ÊýÃû´òµ½Ò»°ëʱ£¬Ìáʾ¿ÉÄܵÄÍêÕûµÄ±äÁ¿/º¯ÊýÃû¡ ......

Python Ï̲߳Ù×÷

ÔÚpythonÖÐÈçºÎ´´½¨Ò»¸öÏ̶߳ÔÏó
Èç¹ûÄãÒª´´½¨Ò»¸öÏ̶߳ÔÏ󣬺ܼòµ¥£¬Ö»ÒªÄãµÄÀà¼Ì³Ðthreading.Thread£¬È»ºóÔÚ__init__ÀïÊ×Ïȵ÷ÓÃthreading.ThreadµÄ__init__·½·¨¼´¿É
import threading
class mythread(threading.Thread):
    def __init__(self, threadname):
      & ......

Python Ï̳߳Ø


import Queue, threading, sys
from threading import Thread
import time,urllib
# working thread
class Worker(Thread):
   worker_count = 0
   def __init__( self, workQueue, resultQueue, timeout = 0, **kwds):
       Thread.__init__( self, **kwds ) ......

eat python 002

 Ä¿Ç°ÎªÖ¹£¬¾ÝÎÒËùÖª£¬ÔÚpythonÖжÔÏó³Ö¾Ã»¯ÓÐÒÔϼ¸ÖÖ·½·¨£º
1. ʹÓÃ(dbhash/bsddb, dbm, gdbm, dumbdbm µÈ£©ÒÔ¼°ËüÃǵÄ"¹ÜÀíÆ÷"( anydbm )¡£Ö»ÌṩÁË Python ×Ö
·û´®µÄÓÀ¾ÃÐÔ´¢´æ. Ìṩһ¸öÀàËÆ×ÖµäºÍÎļþµÄ¶ÔÏ󣬿ÉÒÔÍê³É×Ö·û´®µÄÓÀ¾ÃÐÔ´æ´¢¡£
2. ʹÓÃmarshalºÍpickleÀ´ÐòÁл¯python¶ÔÏ󣬲¢¾ß±¸´æ´¢µ½½éÖÊÉϵĹ ......

eat python 003

Documentation for C's fopen():
---
r Open text file for reading. The stream is positioned at the beginning
of the file.
r+ Open for reading and writing. The stream is positioned at the
beginning of the file.
w Truncate file to zero length or create text file for writing. The
stream is posi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ