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 ÕýÔÚ»ý¼«ÑÐ
Ïà¹ØÎĵµ£º
Õâ¸öËãÊÇC++ǶÈëpython°É£¬ÀûÓÃpythonʵÏÖÏÔʾºÍʼþ´¦Àí£¬C++ʵÏÖÂß¼
ÒÔºóÓÐʱ¼äÒ²»á·´¹ýÀ´ÊÔÊÔ£º£©
import pygame
import sys
import os
import ctypes
def cur_file_dir():
#»ñÈ¡½Å±¾Â·¾¶
path = sys.path[0]
#ÅжÏΪ½Å±¾Îļþ»¹ÊÇpy2exe±àÒëºóµÄÎļþ£¬Èç¹ûÊǽű¾Îļþ£¬Ôò·µ»ØµÄÊǽű¾µÄÄ¿Â ......
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-String-Function
×Ö·û´®ÖÐ×Ö·û´óСдµÄ±ä»»£º
* S.lower() #Сд
* S.upper() #´óд
* S.swapcase() #´óСд»¥»»
* S.capitalize() #Ê××Öĸ´óд
&n ......
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 ......