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

¶¯Ì¬´ó±ÈÆ´Python¡¢LuaºÍRuby


ÀµÓºÆ(http://blog.csdn.net/lanphaday) Òë
ÒëÕß°´£ºPython¡¢luaºÍrubyÔÚC/C++ÊÇÈÕ½¥Ê½Î¢µÄÇé¿öÏ£¬ÔÚjava/.netµÄΧ¼ßÖÐŬÁ¦¿¹ÕùµÄÈý¸öµ±ºìСÉú¡£ÔÚTom GutschmidtµÄÖø×÷¡¶Game Programmng with Python, Lua and Ruby¡·Ò»ÊéÖУ¬½éÉÜÁËÈýÖÖÓïÑÔÔÚÓÎÏ·ÖеÄÓ¦Óã¬ÆäÖÐÓÈΪÁ˲»ÆðµÄÊÇÔÚÊéÖÐ×îºóÒ»ÕÂÖбȽÏÁËÈýÖֽű¾£¬×÷ÕßûÓÐ˵ÊëÓÅÊëÁÓ£¬µ«ÊǶÁÕßÄãÈÏÎªÄØ£¿»¶Ó­ÁôÑÔÌÖÂÛ¡£
 
So which of the three languages is the best to use on your project? That depends a great deal on what you want to accomplish. To wrap up the book, I've outlined some of the pros and cons of each language in this section.
ÕâÈýÖÖÓïÑÔÖеÄÄÄÒ»ÖÖ¸üºÏÊÊÄãµÄÏîÄ¿£¿ºÜ´ó³Ì¶ÈÈ¡¾öÓÚÄãÏë´ïµ½Ê²Ã´ÑùµÄÄ¿±ê¡£×÷ΪһÊéµÄ½á⣬ÔÚÕâÒ»½ÚÀÎÒ»áÃèÊöÒ»ÏÂËüÃǸ÷×ÔµÄÓŵãºÍ²»×ã¡£
Python Pros and Cons
PythonµÄÓŵãºÍ²»×ã
The pros of Python are as follows:
PythonµÄÓŵãÈçÏ£º
·         Python has more extension modules than the other languages.
·         Python±ÈÆäËüÓïÑÔÓиü¶àÀ©Õ¹Ä£¿é¡£
·         Many online Python tutorials exist. There are also plenty of English books and reference materials, many sample scripts exist online, and there is a wealth of introductory material. The Python.org Website is a good place to start looking for these because it has sections for beginners, tutorials, guides organized by topic, and lists of links and references.
·         ÔÚÍøÉÏ¿ÉÒÔÕÒµ½ºÜ¶àPython½Ì³Ì¡£²»½öÈç´Ë£¬»¹ÓдóÁ¿µÄÓ¢ÎÄÊé¼®ºÍ×ÊÁÏ¡£Python.orgÓкܶàΪ³õѧÕß×¼±¸µÄÒÀÖ÷Ìâ×éÖ¯µÄ×ÊÁÏ¡¢½Ì³ÌºÍ±à³ÌÖ¸ÄÏ£¬´ËÍ⻹ÓкܶàÁ´½ÓºÍ²Î¿¼¡£
·         Most folks really enjoy the syntax of the Python language because it appears clean and is easy to read.
·         ºÜ¶àÈ˶¼Ï²»¶PythonÓïÑÔµÄÓï·¨£¬ÒòΪËüÇåÎúÒ×¶Á¡£
·         Python has an edge wher


Ïà¹ØÎĵµ£º

ÔÚWindowsÀï´î½¨PythonµÄGTK+»·¾³´î½¨×¢ÒâÊÂÏî

ÔÚWindowsÀï´î½¨PythonµÄGTK+»·¾³»¹ÊDZȽÏÂé·³µÄÓÐÒÔϼ¸¸ö×¢ÒâÊÂÏî
1¡¢PyGTKÍøÕ¾ÉÏϵİü£¬¿ÉÄÜûÓÐGladeÀࣨLib\site-packages\gtk-2.0\gtkĿ¼ÏÂûÓÐglade.pyd£©£¬Èç¹ûûÓÐÕâ¸öÀàÄã¾ÍÎÞ·¨ÔÚ³ÌÐòÀïµ¼ÈëGlade¹¤¾ß´´½¨µÄxml£¬ÊÖд½çÃæ»¹ÊÇͦÂé·³µÄ¡£
2¡¢GTKÍøÕ¾ÉϵÄGTK°ü£¬Ã»ÓаüÀ¨GladeµÄDLLÎļþ£¬»¹ÊÇÎÞ·¨¶ÁÈëGladeµÄxm ......

python֮ѧϰÀࣺpythonÐÞ¸ÄÎļþÃû


ÏÂÃæÊǶÔijÎļþ¼Ð϶à¸öÎļþÏÂÖ¸¶¨Îļþ»»Ãû×ÖµÄʵÀý£¨ÎªÁË»»Ãû×Ö£¬ÒòΪÀÁµÃÊÖ¶¯¸Ä£¬ÕÛÌÚÁËÒ»»á¸ã³öÀ´µÄ£©
Ô­ÀíºÜ¼òµ¥£¬»»ÎļþÃûµÄ»°Ö¸¶¨path¾ÍÐÐ £¬¾ßÌåµÄ×Ô¼º¿´°É£¬½ö¹©²Î¿¼£¡
#-*- coding:utf-8 -*-
import os,sys
#=======================================
##¶Ô¶à¸öÎļþ¼ÐϵÄÎļþ£¨¼Ð£©½øÐд¦Àí
#============ ......

PDF×Ô¶¯¸ÄÃûµÄPython³ÌÐò


ÏÂÔØµÄPDFÎĵµÖÐÓеÄÃüÃûºÜÂÒ£¬¾ÍÏëÆðÁË×Ô¼ºÐ´¸ö³ÌÐò£¬È»ºó¶ÁÈ¡PDFµÄtitleÊôxing£¬¸ù¾ÝÕâ¸öÊôxing£¬¸ü¸Ä´ÎÎĵµµÄÃû×Ö£¡ÒÔÏÂÊÇ´úÂ룺
ÐèÒªµ½£ºhttp://pybrary.net/pyPdf/ÉÏÃæÏÂÔØ¶ÔӦƽ̨µÄPDFµÄ¿âÎļþ£¬È»ºó°²×°£¬µ¼Èë¡£
#encoding:utf-8
import os
import operator
from pyPdf import PdfFileWriter, PdfFileReader ......

python µÄÄÚǶtimeÄ£°å·­Ò뼰˵Ã÷

CSDNÕ¾ÄÚתÌû£º
http://blog.csdn.net/kiki113/archive/2009/03/28/4033017.aspx
python µÄÄÚǶtimeÄ£°å·­Ò뼰˵Ã÷
  
Ò»¡¢¼ò½é
  timeÄ£¿éÌṩ¸÷ÖÖ²Ù×÷ʱ¼äµÄº¯Êý
  ˵Ã÷£ºÒ»°ãÓÐÁ½ÖÖ±íʾʱ¼äµÄ·½Ê½:
       µÚÒ»ÖÖÊÇʱ¼ä´ÁµÄ·½Ê½(Ïà¶ÔÓÚ1970.1.1 00:00:00ÒÔÃë¼ ......

½«PythonºÍAutoHotkey½áºÏÆðÀ´

http://www.autohotkey.com/forum/topic53773.html
Q:I am searching for is a way to execute AHK commands from a Python script. Is this possible?
A:Yes. Here is an example. 
tested with python2.6, requires AutoHotkey.dll in the working directory or path... 
ahkpython.py:
#Persistent
dllc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ