Python¡¢LuaµÈÓïÑÔÖÐÊÇÈçºÎÅжÏÖ¸ÕëÊÇ·ñÓÐЧµÄ£¿
Python¡¢LuaµÈ½Å±¾ÓïÑÔÖÐÒ»Çж¼ÊǶÔÏ󣬶ÔÏóÓÃÖ¸Õë±êʶ£¬µ«ÕâЩÓïÑÔÖÐÊÇÈçºÎÅжÏÖ¸ÕëÓÐЧµÄÄØ£¿
ÀýÈ磬һ¸öº¯ÊýÖÐij¸ö²ÎÊýÊÇÖ¸Õ루ָÏòÒ»¸ö¶ÔÏ󣩣¬ÔÚº¯ÊýµÄÄÚ²¿ÊµÏÖÖУ¬Èç¹ûÖ±½Ó¶ÔÖ¸Õë²Ù×÷£¬¿ÉÄܳöÏÖµÄÎÊÌâÊÇ£º
1£©Ö¸ÕëÓÐЧ£¬Ôò²Ù×÷³É¹¦¡£
2£©Ö¸Õë·Ç·¨£¬³ÌÐòÔËÐн«³ö´í¡£
ΪÁ˱ÜÃâ²Ù×÷·Ç·¨Ö¸Õ룬½«´úÂë°üº¬µÄtry¿éÖУ¬ÈôÓÐÒì³£±íʾָÕë·Ç·¨£¬µ«ÕâÑù³öÏÖµÄÎÊÌâÊÇ£ºÃ»ÓÐÒ쳣ʱ£¬²Ù×÷Ò²¿ÉÄܳö´í£¬²¢ÇÒÄÑÒÔ¼ì²éÕâÖÖ´íÎó¡£ÀýÈ磺aºÍbÊÇÁ½ÖÖ²»Í¬µÄ¶ÔÏó£¬Ä³¸öº¯ÊýÐèÒªaÀàÐͲÎÊý£¬²»ÐÒµÄÊÇ£¬Îó½«b´«¸øÁ˸ú¯Êý£¬ÒòbÒ²ÊÇÓÐЧµÄµØÖ·£¬ËùÒÔº¯Êý³É¹¦Ö´ÐÐÁË£¬Ã»ÓÐÒý·¢Òì³££¬µ«ÕâÖÖ²Ù×÷ÊÇÎÒÃDz»Ï£ÍûµÄ¡£Python¡¢LuaµÈ½Å±¾ÓïÑÔÊÇÈçºÎ½â¾ö´ËÀàÎÊÌâµÄ£¿
luaÎÒ²»ÖªµÀ.
pythonÖÐ, ÆäʵûÓÐÖ¸ÕëÕâ¸ö¸ÅÄîµÄ, ÒýÓÃÊÇÖ¸Ò»¸ö¾ä±úÖ¸ÏòÒ»¸ö¶Ñ¶ÔÏó... µ«ÊÇ, ÕâЩ¶ÔÏóÕæÕýµÄÄÚ´æ²Ù×÷¶Ôpython³ÌÐòÔ±ÊÇ͸Ã÷µÄ, pythonºÍjavaÒ»Ñù, ͨ¹ýÀ¬»ø»ØÊÕ»úÖÆʹµÃÄÚ´æ¶Ô³ÌÐòԱ͸Ã÷»¯. ËùÒÔ, ʹÓÃpython±à³Ìʱ, ´Ó³ÌÐòÔ±½Ç¶ÈÀíÂÛÉÏÀ´Ëµ, ²»»áÓÐËùνµÄÖ¸Õë·Ç·¨....
ʣϵÄ, ¾ÍÊÇÄãÃèÊöµÄÒì³£ÁË.ÄãËùÃèÊöµÄa, b²»Í¬µÄ¶ÔÏó, º¯ÊýÐèÒªa, ´«ÁËb, Õâ¸öÊôÓÚTypeError, µ«ÊÇ, pythonÊDz»»áÖªµÀÄãÕâÀïÊÇÒòΪ´«²Îµ¼ÖµÄ, ÒòΪpythonÊǶ¯Ì¬ÓïÑÔ, ÈõÀàÐÍ, ËùÒÔ, ÕâÖÖÇé¿öÍùÍùÐèÒª³ÌÐòÔ±×Ô¼º¼ÓÉÏÀàÐÍÑé֤ȥ¿ØÖÆ, ±ÈÈç
def f(a):
if not isinstance(a, A):
raise TypeError, 'Çë¸øÎÒÒ»¸öAÀàÐ͵IJÎÊý'
#ʣϵÄ, È¥×öÄãÕý³£µÄÒµÎñ´¦Àí.
¶øÉÏÃæÄãÌáµ½µÄbÒ²ÊÇÓÐЧµÄµØÖ·, ËùÒÔº¯Êý³É¹¦Ö´ÐÐÁË, Äǵ±È»ÊÇÓпÉÄܵÄ, µ«ÄÇÊ
Ïà¹ØÎÊ´ð£º
ÎÒÓÃÁËdef CreateMyDialog(self):
dlg = MyDialog(None, -1, ''.decode('utf8'), (300,300), (300,200), wx.DEFAULT_DIALOG_STYLE | wx.DIALOG_NO_PARENT )
&nbs ......
ÇëÎÊÏ£¬ÎÒµÄÊÇpython2.5°²×°ÁËPILÄ£¿é£¬È»ºó±àд³ÌÐò´ò¿ª±¾»úÉϵÄÒ»¸öͼƬʱ£¬ÎªÊ²Ã´ÀϳöÏÖ´íÎóÄØ£¬ÀÏÊÇÕÒ²»µ½Í¼Æ¬£¬´íÎóÌáʾÈçÏ£ºFile "C:\Python25\Lib\site-packages\PIL\Image.py", line 1888, in o ......
ÎÒÿ´ÎÉÏ´«µÄÎļþ¶Áµ½µÄÊý¾Ý¶¼²»ÕýÈ·¡£2M µÄͼƬ¶ÁµÃ10¶àK ¡£¡£ÄÄλ´óÏÀ¿ÉÒÔ°ï°ïÎÒ°¡¡£
#!D:\ProgrammerTools\python26\python.exe
#encoding=utf-8
import cgitb
import os
cgitb.enable()
import cgi,urllib ......
ÓźñµÄ¸å³ê£¬³ÏÕÐPython¼¼ÊõÈËÔ±²ÎÓë¸÷ÖÖ¼¼ÊõÊé¼®³ö°æ¡£
ͨ¹ý¸ÃÊé¼®£¬×÷Õß¿ÉÒԵõ½Èçϱ¨³ê£º
1¡¢·áºñµÄ¸å³ê¡£
2¡¢Êé¼®Öø×÷µÄÊðÃûȨ¡£
3¡¢¶Ô×÷ÕߺÍÊé½øÐÐÐû´«£¬Ìá¸ß×÷ÕßÔÚ¼¼ÊõȦ×ÓÀ ......
¸÷λºÃ£¬Ð¡µÜÎÒÓöµ½Ò»¸öÎÊÌ⣬ÎÒÊÔ×ÅÓÃPython´ÓÎÒµÄLinuxÉÏÈ¥Á¬½Óһ̨Զ³ÌµÄOracleÊý¾Ý¿â·þÎñÆ÷£¬È»ºóÔÚÍøÉÏÕÒÁËÒ»¸ö½Ð×öcx_OracleµÄÒ»¸ölib£¬¿ÉÔÚÎÒÖ´ÐÐsetup³ÌÐòµÄʱºò±¨ÁËÒ»¸ö´í£º
Traceback (most recent ......