¶¯Ì¬´ó±ÈÆ´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
Ïà¹ØÎĵµ£º
1.PythonÖÐʱ¼äº¯ÊýÓм¸ÖÖ²»Í¬µÄ±íʾ·½·¨¡£Ò»ÖÖÊÇ»ùÓÚÊý×ֵıíʾ·½·¨£¬ÁíÍâÒ»ÖÖÊÇÓÃһϵÁÐÖµÀ´±íʾ£¬µÚÈýÖÖÊÇÓÃASCIIÂë×Ö·û´®µÄ¿É¶ÁÐÎʽÀ´±íʾµÄÔª×é¡£ time()º¯Êý·µ»ØµÄÊÇ´Óijһʱ¼äµãËãÆðµÄÃëÊý£¬¸ÃÊýÖµÊÇÒ»¸ö¸¡µãÊý¡£¸ù¾Ý²Ù×÷ϵͳµÄ²»Í¬£¬Õâ¸öʱ¼äµãÒ²²»Í¬¡£Í¨¹ýÇólocaltime(0)µÄÖµ¿ÉÒÔÕÒµ½ÏµÍ³µÄ¸Ãʱ¼äµã¡£ localtime ......
¹ýÁ¿µÄ²ÎÊý
ÔÚÔËÐÐʱ֪µÀÒ»¸öº¯ÊýÓÐʲô²ÎÊý£¬Í¨³£ÊDz»¿ÉÄܵġ£ÁíÒ»¸öÇé¿öÊÇÒ»¸öº¯ÊýÄܲÙ×÷ºÜ¶à¶ÔÏ󡣸üÓÐÉõÕߣ¬µ÷ÓÃ×ÔÉíµÄº¯Êý±ä³ÉÒ»ÖÖapiÌṩ¸ø¿ÉÓõÄÓ¦Óá£
¶ÔÓÚÕâЩÇé¿ö£¬pythonÌṩÁËÁ½ÖÖÌرðµÄ·½·¨À´¶¨Ò庯ÊýµÄ²ÎÊý£¬ÔÊÐíº¯Êý½ÓÊܹýÁ¿µÄ²ÎÊý£¬²»ÓÃÏÔʽÉùÃ÷²ÎÊý¡£ÕâЩ“¶îÍ┵IJÎÊýÏÂÒ»²½ÔÙ½âÊÍ¡£
×¢Òâa ......
»¹¼ÇµÃÊÇÒ»¸öÔµÄÊÂÇ飬ÉñÆæ°ãµÄÔÚyoutubeÉÏËÑË÷python£¬ÓиöÀÏÍâµÄ½Ì³ÌÀïÃæÓÐÕâô¸öÄÚÈÝ£º
#=============================
## python ħ·¨´«Öµ
#=============================
#-*-coding:utf-8-*-
class sono:
def Dict(self,**args):
ret ......
http://cocobear.info/blog/2009/01/16/use-python-deal-with-excel/
ʹÓÃPython´¦ÀíExcel±í¸ñ 2009Äê01ÔÂ16ÈÕ
¸ø°³µÄbossдµÄÒ»¸öС¹¤¾ß£¬Ê¹ÓÃPython¶ÔExcel½øÐÐͳ¼Æ£¬È»ºó°Ñ½áÊøÉú³ÉÒ»¸öеÄExcel±í¸ñ£¬Ê¹Óõ½ÁËxlrdºÍpyExceleratorÁ½¸ö¿â¡£
¼òµ¥µÄ½éÉÜÒ»ÏÂÕâÁ½¸ö¿â£¬ÏÈ˵xlrd£¬Õâ¸ö¿â¶ÁExcel±È½Ï·½±ã£¬¸÷ÖÖ·½·¨Ê¹ÓÃÆ ......
¼ÈȻѡÔñÁËÔ¶·½£¬¾Í±ØÐëÈÕÒ¹¼æ³Ì http://wrsuifeng.javaeye.com
Python´úÂë
# Filename: excel.py
import os,sys,time
import win32com.client
import traceback
excel = win32com.client.Dispatch(" ......