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

(python)http://www.python.org/

ÖÐÎļò½é
¡¡¡¡Python (·¢Òô:[ 'paiθ(?)n; (US) 'paiθ?n ]n.òþÉߣ¬¾ÞÉß )£¬ÊÇÒ»ÖÖÃæÏò¶ÔÏóµÄ½âÊÍÐԵļÆËã»ú³ÌÐòÉè¼ÆÓïÑÔ£¬Ò²ÊÇÒ»ÖÖ¹¦ÄÜÇ¿´ó¶øÍêÉÆµÄͨÓÃÐÍÓïÑÔ£¬ÒѾ­¾ßÓÐÊ®¶àÄêµÄ·¢Õ¹ÀúÊ·£¬³ÉÊìÇÒÎȶ¨¡£Python ¾ßÓнű¾ÓïÑÔÖÐ×î·á¸»ºÍÇ¿´óµÄÀà¿â£¬×ãÒÔÖ§³Ö¾ø´ó¶àÊýÈÕ³£Ó¦Óá£ËüµÄÃû×ÖÀ´Ô´ÓÚÒ»¸öϲ¾ç,Ò²Ðí×î³õÉè¼ÆPythonÕâÖÖÓïÑÔµÄÈ˲¢Ã»ÓÐÏëµ½½ñÌìPython»áÔÚ¹¤ÒµºÍ¿ÆÑÐÉÏ»ñµÃÈç´Ë¹ã·ºµÄʹÓá£ÖøÃûµÄ×ÔÓÉÈí¼þ×÷ÕßEric RaymondÔÚËûµÄÎÄÕ¡¶ÈçºÎ³ÉΪһÃûºÚ¿Í¡·ÖУ¬½«PythonÁÐΪºÚ¿ÍÓ¦µ±Ñ§Ï°µÄËÄÖÖ±à³ÌÓïÑÔÖ®Ò»£¬²¢½¨ÒéÈËÃÇ´ÓPython¿ªÊ¼Ñ§Ï°±à³Ì¡£ÕâµÄÈ·ÊÇÒ»¸öÖпϵĽ¨Ò飬¶ÔÓÚÄÇЩ´ÓÀ´Ã»ÓÐѧϰ¹ý±à³Ì»òÕß²¢·Ç¼ÆËã»úרҵµÄ±à³ÌѧϰÕß¶øÑÔ£¬PythonÊÇ×îºÃµÄÑ¡ÔñÖ®Ò»¡£
¡¡¡¡
Ó¢Îļò½é
¡¡¡¡Python is an object-oriented explanation of computer programming languages, is a powerful and well-size-fits-all language, has been more than a decade of development, maturity and stability. Python scripting language with the most rich and powerful class library, enough to support the vast majority of day-to-day applications.
¡¡¡¡This language has a very simple and clear characteristics of grammar, for a variety of high-level mission to complete, almost all of the operating system to run.
¡¡¡¡At present, this language is related to the rapid technological development, the rapid expansion of the number of users, and related resources.
¡¡¡¡ÕâÖÖÓïÑÔ¾ßÓзdz£¼ò½Ý¶øÇåÎúµÄÓï·¨ÌØµã£¬ÊʺÏÍê³É¸÷Öָ߲ãÈÎÎñ£¬¼¸ºõ¿ÉÒÔÔÚËùÓеIJÙ×÷ϵͳÖÐÔËÐС£
¡¡¡¡Ä¿Ç°£¬»ùÓÚÕâÖÖÓïÑÔµÄÏà¹Ø¼¼ÊõÕýÔÚ·ÉËٵķ¢Õ¹£¬Óû§ÊýÁ¿¼±¾çÀ©´ó£¬Ïà¹ØµÄ×ÊÔ´·Ç³£¶à¡£
PythonµÄHello World³ÌÐò¡¡
¡¡ÏÂÃæÊÇÒ»¸öÔÚ±ê×¼Êä³öÉ豸ÉÏÊä³öHello WorldµÄ¼òµ¥³ÌÐò£¬ÕâÖÖ³ÌÐòͨ³£×÷Ϊ¿ªÊ¼Ñ§Ï°±à³ÌÓïÑÔʱµÄµÚÒ»¸ö³ÌÐò£º
¡¡¡¡ÔÚpython2.x°æ±¾ÖÐ
¡¡¡¡#!/usr/bin/env python
¡¡¡¡print "Hello, world!"
¡¡¡¡»òÕߣº
¡¡¡¡import sys
¡¡¡¡sys.stdout.write("Hello, world\n")
¡¡¡¡///////
¡¡¡¡ÔÚpython3.xÖÐ
¡¡¡¡printÊÇÒ»¸öÍêÍêȫȫµÄº¯Êý£¬ÐèÒªÐ޸ijɣº
¡¡¡¡print('Hello world!')
Óŵã
¡¡¡¡¼òµ¥————PythonÊÇÒ»ÖÖ´ú±í¼òµ¥Ö÷Òå˼ÏëµÄÓïÑÔ¡£ÔĶÁÒ»¸öÁ¼ºÃµÄPython³ÌÐò¾Í¸Ð¾õÏñÊÇÔÚ¶ÁÓ¢ÓïÒ»Ñù£¬¾¡¹ÜÕâ¸öÓ¢ÓïµÄÒ


Ïà¹ØÎĵµ£º

µÚÒ»´ÎдÍêÕûµÄPython GUI³ÌÐò

 Ò¹ÀïÓÃÍâ¹ÒÈÝÒ×±»²é£¬Òò´ËÏëÈòËÊìµÄʱ¼ä¼¯Öе½°×Ì죬ÿ´Î¶¼Òª¿ÚË㣬Âé·³£¬ÕýºÃ¸Õ¸ÕѧÁËwxPython£¬Ò»Ê±ÊÖÑ÷£¬À´×Ô¼ºÐ´¸ö°É¡£Ëä˵´¿Êô×ÔÓé×ÔÀÖ£¬µ«Ò²Ñ§µ½²»ÉÙ¶«Î÷¡£ÏÖ¼ÇÓÚÏ¡£
1. ¹ØÓÚPythonµÄGUIÉè¼Æ
Ò»Ö±ÒÔÀ´¶¼Ã»ÓÐÒ»¸ö×ã¹»ºÃµÄKiller IDE£¬ÕâÒ²¹Ö²»µÃ£¬Ã»ÓÐÒ»¸ö×㹻ǿ´óµÄºǫ́£¬ÒªÏë×ö³ÉÖØÁ¿¼¶µÄIDE̸ºÎÈÝÒ×£¨ÒªÊ ......

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 ) ......

Python¼¸ÖÖ²¢·¢ÊµÏÖ·½°¸µÄÐÔÄܱȽÏ

 
#!/Library/Frameworks/Python.framework/Versions/2.5/bin/python
# encoding: utf-8
import sys, time
import thread
 
SLEEP_TIME = 0.0001
 
def run_benchmark(n, m):
    # print(">> Python 2.5.1, stackless 3.1b3 here (N=%d, M=%d)!\n" % (n, m))
    lock ......

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

http://www.ibm.com/developerworks/cn/opensource/os-cn-ecl-pydev/Á¬½ÓÕâ¸öÍøÖ·£¬²»»áÈÃÄãʧÍûµÄ¡£
PyDev ¼ò½é
2003Äê7ÔÂ16ÈÕ£¬ÒÔ Fabio Zadrozny ΪÊ×µÄÈýÈË¿ª·¢Ð¡×éÔÚÈ«Çò×î´óµÄ¿ª·ÅÔ´´úÂëÈí¼þ¿ª·¢Æ½Ì¨ºÍ²Ö¿â SourceForge ÉÏ×¢²áÁËÒ»¿îеÄÏîÄ¿£¬¸ÃÏîĿʵÏÖÁËÒ»¸ö¹¦ÄÜÇ¿´óµÄ Eclipse²å¼þ£¬Óû§¿ÉÒÔÍêÈ«ÀûÓà Eclipse À ......

Python & XML


Chapter 1
Python and XML
Python and XML are two very different animals, each with a rich
history. Python is a full-scale programming language that has grown
from scripting world roots in a very organic way, through the vision
and guidance of Python's inventor, Guido van Rossum. Guido continue ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ