Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

ÓÃPythonдµÄͼƬ֩ÖëÈË


    Ð´Á˸öͼƬ֩ÖëÈËÍæÍ棬ץÁ˼¸¸öÍøÒ³ÊÔÊÔ£¬¸Ð¾õ²»²»´í¡£ºËÐĵĴúÂë¿ÉÄÜ20ÐÐÒ²²»µ½£¬¼ò½àÃ÷ÁË£¬ÎûÎû¡£·Ï»°ÉÙ˵£¬´ä»¨£¬ÉÏ´úÂë~~
#coding=utf-8
import os
import sys
import re
import urllib
URL_REG = re.compile(r'(http://[^/\\]+)', re.I)
IMG_REG = re.compile(r'<img[^>]*?src=([ ......

Python Import»úÖƱ¸Íü(ת)

Python Import»úÖƱ¸Íü(ת)
   ×î½üÔÚ¿´¡¶PythonÔ´ÂëÆÊÎö¡·£¬¶ÔPythonÄÚ²¿ÔËÐлúÖƱÈÒÔÇ°Á˽âµÄ¸üÉîÈëÁË£¬¸Ð¾õ×Ô¼ºÓлú»áÒ²¿ÉÒÔ×ö¸öСÐ͵Ķ¯Ì¬½Å±¾ÓïÑÔÁË£¬ºÇºÇ£¬µ±È»
ÊÇ´µÅ£ÁË¡£Ä¿µÄµ±È»²»ÊÇ´´ÔìÒ»¸ö¶¯Ì¬ÓïÑÔ£¬Ä¿µÄÖ»ÓÐÒ»¸ö£º¸üºÃµÄʹÓÃPython¡£¿´µ½Ä£¿éµ¼ÈëÄÇ¿éµÄʱºò£¬ÖÕÓÚ¶ÔÄ£¿éµ¼Èë»úÖƱȽÏÁ˽âÁË£¬ÒÔ·ÀÍ ......

python Excel ±à³Ì

1)Excel hyperlink:
xlsApp = win32com.client.Dispatch('Excel.Application')
cell = xls.App.ActiveSheet.Cells(1,1)
cell.Hyperlink.Add(cell,'http://xxx')
2)Excel row/column count:
sht = xlsApp.ActiveSheet
sht.Columns.Areas.Count
sht.Rows.Areas.Count
*************************
£Û1£ÝʹÓÃPyExcelera ......

python ²Ù×÷ms office Éú³É±¨¸æÏà¹Ø×ܽá


¹Ø¼ü×Ö: python com ±¨¸æ
http://appofis.javaeye.com/blog/417446
python ²Ù×÷ms office Éú³É±¨¸æÏà¹Ø×ܽá
I. ÏîÄ¿ÖÐÐèÒªÉú³ÉwordºÍexcel±¨¸æ£¬Í¨³£ÓÐÁ½ÖÖ·½·¨£º»ùÓÚ×Ö·û´®Æ´½ÓÒÔ¼°COMµ÷Óá£
1) ×Ö·û´®Æ´½ÓÉú³ÉofficeÎĵµµÄÔ­Àí£º officeÎĵµ±¾Éí¿ÉÒÔÌåÏÖΪxmlÎļþ¸ñʽ£¬ÓÈÆäÊÇMS Excel
2003£¬ÎÒÃÇ¿ÉÒÔ×Ô¼º½«Ò» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ