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

Python, Ruby Óë Groovy£¬Ë­ÓëÕù·æ£¿

 SleekEngine
Ëæ׿ÆËã»úÓ²¼þµÄ¿ìËÙ·¢Õ¹£¬10ÄêÇ°ÒòΪËÙ¶ÈÎÊÌâ¶ø±»Ú¸²¡µÄJavaÏÖÔÚ³ÉÁ˼ÆËã»úÁ÷ÑÔÓïÑÔÖеÄÀϴ󣬵«ÊÇËüÈ´ÈÔ±»ÈÏΪ¸´ÔÓ±¿ÖØ£¬½ü¼¸ÄêÀ´¶¯Ì¬Óï
ÑÔÈ´ÓкóÀ´¸ÏÉϵÄÇ÷ÊÆ£¬ÕÆÎÕÒ»ÃŶ¯Ì¬ÓïÑÔ³ÉÁ˳ÌÐòÔ±ÐèÒª¿¼ÂǵÄÊÂÒË¡£ ½üÆÚ½Ó´¥Á˼¸ÖÖÁ÷ÐеĶ¯Ì¬ÓïÑÔPython, Ruby,
Groovy£¬ËüÃÇÏà±È¾²Ì¬ÓïÑÔJava/C++À´Ëµ£¬´óΪ¼òµ¥£¬Áé»î£¬Ê¡Ê±£¬ÄÇôѡÔñºÎÖÖÓïÑÔ£¿
dz³¢ÈýÖÖÓïÑÔºó£¬Ð´Ï´ËÎÄ£¬×÷ΪÔÚJavaEyeÁôµÄµÚһצ¡£
´ÓTIOBEÍøÕ¾µÄÓïÑÔÅÅÃû¿ÉÒÔ¿´³ö£¬±È½Ï2000Óë2008Ä꣬Java ´Ó30%µøµ½20%×óÓÒ, C++´Ó18%µøµ½11£¥£¬
¾²Ì¬ÓïÑÔ´Ó72%Õ¼ÓÐÂʽµµ½ÁË60%; ¶¯Ì¬ÓïÑÔÓÉ27%Éýµ½40%£¬ÆäÖÐPython´Ó1%µ½5%, RubyÓÉ <
1%µ½2.5%¡£PHPÓÉ5%³¤µ½11%¡£(ÒÔÉÏÊý¾ÝΪ´óÔ¼¹ÀËã)
´ÓÆóÒµ½ç½Ç¶È¿´£¬ÓïÑÔµÄÁ÷ÐÐÐÔÓëÒÔϼ¸µãÓйأº
1)  ³ÉÊìµÄ¿â(library)
   PythonµÄ¿â·Ç³£¶à£¬ Groovy¿ÉÒÔµ÷ÓÃÇ¿´óµÄJavaËùÓеĿ⣬ruby²îЩ£¬µ«ÊÇÕýÔÚ¸ÏÉÏ¡£
2) Á÷Ðпò¼Ü
  Èç¹ûijÖÖÓïÑÔÓиöÁ÷Ðпò¼Ü£¬ÄǾÍÄÜÎüÒý¹ýÀ´ºÜ¶àʹÓÃÕß¡£Ruby on RailÊÇɱÊÖ¼¶¿ò¼Ü¡£Python ¿ò¼ÜºÜ¶à£¬µ«ÊÇÄ¿Ç°ÉÐûÓÐÌرðÍ»³öµÄ¡£Groovy»¹ÄêÇᣬֻÓиöGrails£¬µ«ÊÇ¿ÉÒÔÀûÓÃJAVAÒÑÓеĿò¼ÜÈçSPRING HIBERNATE¡£
3) Á÷ÐгÌÐò
   Èç¹ûij¸öÁ÷ÐгÌÐòʹÓÃÁËijÓïÑÔ£¬ÄÇôÕâÖÖÓïÑÔ²»¿É±ØÃâ»á±»¶àÈËʹÓᣱÈÈçiPhoneµÄ³öÏÖʹһÖÖ¿ÉÄÜû¶àÉÙÈËÌý˵¹ýµÄ
CocoaÈÈÁËÆðÀ´£¬ÒòΪÈËÃÇÓÃËü±àдÔÚiPhoneÉÏÔËÐеÄÊÖ»ú³ÌÐò¡£ÕâÈýÖÖ¶¯Ì¬ÓïÑÔÖÐPythonÔÚͼÏó´¦Àí£¬»ò¿Æѧ¼ÆËã½çÒÑÕ¼ÓÐһϯ֮µØ¡£Ruby
¿ÉÄÜÂäºóһЩ£¬Groovy¼¸ºõûÓС£
4) ÆóÒµ½çµÄÇãÏò
Êг¡Í¨³£»áÇãÏòÓÚ¼òµ¥ºÃÓÃʡʱʡÁ¦£¬Ò×ÓÚʹÓÃά»¤£¬Îȶ¨£¬ÄܳÐÊܴ󸺺É(scalable)µÄÓïÑÔ£¬ÕâÒ²ÊÇJAVAµÄÁ÷ÐÐÐÔµ±Ê±³¬¹ýC£«+µÄÔ­
Òò£¬ÕâÈý¸öÓïÑԱȾ²Ì¬ÓïÑÔ¶¼¼òµ¥£¬ÆäÖÐPythonÓÉÓÚÆäÓï·¨ºÍ¾ä·¨¼òµ¥£¬ËùÒÔ¿ÉÄÜÊÇ×îºÃά»¤£¬¶øÇÒÄܹ»³ÐÊܸ߸ººÉ(YoutubeÿÌìÊýÒÚµã»÷Ϊ
Ö¤)£»RUBY
ÓÐЩħ»ÃÓï·¨Ò²ÄÜʹ³ÌÐòдµÃºÜ¼òµ¥£¬×ÜÌåά»¤ÉϱÈPython¸Ð¾õ²îÁËÒ»µã£¬ÈÃÆäËûÈË¿´³ÌÐò¿ÉÄܲ»ÊǷdz£Ö±½ÓÒ׶®£¬ÐÔÄÜÉÏÄ¿Ç°Ò²²îЩ¡£Groovy
Ä£·ÂÁË´óÁ¿RUBY£¬Ò²½è¼øÁËÉÙÁ¿PythonÎÄ·¨£¬ÓÉÓÚÔÚJVMÉÏÔËÐУ¬ÐÔÄÜÉÏÓ¦¸ÃÊDz»´íµÄ¡£
5)¶ÔÓ²¼þµÄÀûÓÃ
¶Ô×ÅË«ºËµÄ³öÏÖ£¬¿ÉÒÔÔ¤ÁÏË«ºË£¬Ëĺˣ¬16,
32..ºËCPU¶¼¿ÉÄÜÔÚδÀ´³öÏÖ¡£Èç¹ûδÀ´ÓïÑÔÖ»ÄÜÀûÓöàºËÖеÄÒ»ºË£¬ÄÇδÃâÌ«ÀË·ÑÁË£¬Ò²¿ÉÄÜÒò´Ë¶øÂäÓÚÈ˺󡣴ÓÕâÒ»µãÉÏ¿´GROOVYÓÐÌìÈ»ÓÅÊÆ£¬ÄÜ
½èÖúJVMÍê³ÉÕâÒ»ÈÎÎñ£»PYTHON ÕýÔÚ»ý¼«ÑÐ


Ïà¹ØÎĵµ£º

ÉîÈë GalCon£ºPython¡¢ÓÎÏ·¿ª·¢ºÍÈ˹¤ÖÇÄÜ

Alex. J. Champandard
ÀµÓºƣ¨http://laiyonghao.com£© Òë
Ô­ÎĵØÖ·£ºhttp://aigamedev.com/open/interviews/inside-galcon-python-ai/
AiGameDev.comÔÚÕâ¸öÖÜÒ»µÄ pratical insights ÊǶÔPhil Hassey²É·Ã¡£Phil ÊÇÒ»¸ö¶ÀÁ¢ÓÎÏ·¿ª·¢Õߣ¬Ò²ÊÇÓÎÏ·²úÒµÉçÇøµÄ»îÔ¾·Ö×Ó¡£ËûÔøÓ®µÃ2006Äê4Ô嵀 Ludum Dare ±ÈÈü£¨Õâ¸ö±ÈÈü¹Ø×¢ ......

PythonÈÕÆÚ²Ù×÷ѧϰ±Ê¼Ç

 http://www.itzn.cn/html/jiaoben/python-perl-VBA/200812/19-3283.html
×Ö·û´®ÊÇʹÓþ²Ì¬µÄ·½Ê½½øÐд洢£¬Ö»ÄܶÁ¶ø²»ÄÜÖ±½ÓÐÞ¸Ä×Ö·ûÄÚÈÝ¡£Ìرð½«Ò»¶Ñ¶Ô×Ö·û´®²¢ÔÚÒ»ÆðµÄʱºò£¬ËäÈ»¿ÉÒÔÖ±½ÓÏà¼Ó£¬Ìý˵ÕâÑùµÄËÙ¶ÈÆæÂý£¬Ö»ÓÐÓÃÆäËüº¯ÊýµÄ·½Ê½½øÐУ¬ºÃÔÚÒ²²»Ì«Âé·³¡£
±ÈÈçÓà print ','.join(datelist)
¾Í¿ÉÒÔ½«date ......

Python×Ö·û´®µÄencodeÓëdecode

 
Ê×ÏÈÒª¸ãÇå³þ£¬×Ö·û´®ÔÚPythonÄÚ²¿µÄ±íʾÊÇunicode±àÂ룬Òò´Ë£¬ÔÚ×ö±àÂëת»»Ê±£¬Í¨³£ÐèÒªÒÔunicode×÷ΪÖмä±àÂ룬¼´ÏȽ«ÆäËû±àÂëµÄ×Ö·û´®½âÂ루decode£©³Éunicode£¬ÔÙ´Óunicode±àÂ루encode£©³ÉÁíÒ»ÖÖ±àÂë¡£
decodeµÄ×÷ÓÃÊǽ«ÆäËû±àÂëµÄ×Ö·û´®×ª»»³Éunicode±àÂ룬Èçstr1.decode('gb2312')£¬±íʾ½«gb2312±àÂëµÄ×Ö· ......

PythonµÄ´®¿ÚͨѶµÚÈý·½¿âPySerial

 ×î½üÒªÓõ½´®¿ÚͨѶ£¬¼òµ¥Ò×ÓõÄPythonÓÖ°ïÉÏæÁË£¬¶à¿÷ÁËÅÓ´óµÄµÚÈý·½×ÊÔ´~~~ £º£©
pySerial
Overview
This module encapsulates the access for the serial port. It provides
backends for Python running on Windows, Linux, BSD (possibly any POSIX
compliant system), Jython and IronPython (.NET and M ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ