Ïòpython¿¿½ü
ÕÛÌÚ¼ÆËã»ú£¬±»¼ÆËã»úÕÛÌÚ£¬Ç°Ç°ºóºóÒ²ÓÐÊ®¼¸Äê¡£
×î¿É±¯µÄÊǾÓȻһÎÞËù³É£¬ËäÈ»½ö½ö³öÓÚÐËȤ£¬²¢ÎÞ¹¤×÷֮ѹÁ¦£¬µ«ÊÇÕâÖÖ´ìÕÛ¸ÐȷʵÊÇʵ´òʵµÄ¡£
ÒѾ¼Ç²»ÆðÊÇÄÄÒ»ÌìÁË£¬ºÃÏñͻȻ¾ÍÖªµÀÁËpythonµÄ´æÔÚ£¬´Ó×î³õµÄ²»¾Ò⣬µ½Ô½À´Ô½Ï²°®£¬ÎÒÒ»²½²½µÄÏòpython¿¿½ü¡£
ÎÒϲ»¶Python£¬ÕâÊÇÒ»¸öÊÂʵ£¬ÎÒ׫´ËÎÄÖ»ÊÇÏë˵˵pythonµÄºÃ£¬ÒÔ±í´ï×Ô¼º¶ÔÆäϲ°®Ö®Ç飬²¢Îª³õѧÕßÌṩһµãÓÐÓõĽ¨Òé¡£
python¼òµ¥£¬Äã¿ÉÒԺܿìµÄÉÏÊÖ¡£
pythonÇ¿´ó£¬Äã¿ÉÒÔÍê³É´ÓС½Å±¾µ½×ÀÃæÓ¦ÓóÌÐòÔÙµ½ÍøÂç·þÎñÓëÓ¦Óõıà³Ì¡£
pythonÃ÷Îú£¬Äã¿ÉÒÔÇáËɶÁ¶®±ðÈËÊéдµÄ´úÂ룬¶ø²»ÓÃΪ´óÁ¿ÄªÃûÆäÃîµÄÓ÷¨¶øÉËÄԽ
²»¹ÜÄÇЩ±ðÓÐÓÃÒ⣬»òÕßÕæÊǸßÉîĪ²âµÄÈËÔõô˵£¬pythonѧϰÆðÀ´ºÜ¿ì£¬pythonÓÃÆðÀ´ºÜˬ¡£Õâ¾Í¹»ÁË£¬²»ÊÇÂð£¿
ÎÒÏ룬ÎÒÃÇ»òÐíÐèÒª°Ñ±à³Ì´ÓרҵÈËÔ±ÄÇÀï°þÀë³öÀ´£¬±à³ÌÊÇÒ»ÖÖÉú»î£¬¶ø²»Ó¦½ö½öÊÇÒ»ÖÖ¹¤×÷¡£
ÓÐЩר¼ÒËùνµÄ½¨ÒéÆäʵ×ÜÊÇ´Ó¸÷¸ö·½ÃæÀ´¹¥»÷PythonµÄ²»×㣬ȴ»Ø±ÜpythonµÄÇ¿Ïî¡£ËûÃÇ×ÜÊÇÓùýÓÚרҵµÄÑÛ¹âÔÚij¸ö·½ÃæÀ´ÌôÌÞ£¬¶ø²»ÊǾßÌåµÄʵÓÃÐÔ¡£
Êǵģ¬Ê²Ã´¶«Î÷¶¼Óв»×㣬±ÈÈç˵pythonÖ´ÐбȽÏÂý£¬ºÃ°É£¬µ«ÎÒÖ»ÏëΪ×Ô¼º»òÕß¼ÒÈË»òÕßÅóÓÑдһ¸ö¿ÉÒÔʵÓõŤ¾ß£¬²»ÐèÒªÃæ¶ÔËùνµÄ¸ß¸ºÔØ£¬ËùνµÄʵʱÐÔ£¬ÎÒÖ»ÐèÒªÔÚÎÒ¿ÉÒÔÈÌÊܵÄʱ¼ä·¶Î§ÄÚÈüÆËã»úÍê³É¸Ã×öµÄ¹¤×÷¾ÍÐÐÁË¡£
ʵÔÚ²»ÐУ¬»¹Óи÷λ´óÄÜËù±àдµÄcÄ£¿é¿ÉÒÔʹÓã¬Èç¹ûûÓÐÄØ£¬ÄÇÎÒ¾Í×Ô¼ºÑ§×Åдһ¸öcÄ£¿é£¬Õâ²»¾ÍÊǼÆËã»úÕæÕý´ø¸øÎÒÃǵÄÀÖȤô¡£¸üºÎ¿ö£¬python²¢Ã»ÓÐÂýµ½Ê§È¥ÊµÓüÛÖµ£¬ËûÖ»ÊÇÏà¶Ô½ÏÂý¶øÒÑ¡£
ËùÒÔµ½ÕâÀÎÒÐèҪ˵Ã÷һϣ¬pythonÊÇÒ»¸öÊÊÓÃÓÚÈ«ÃñѧϰʹÓõıà³ÌÓïÑÔ£¬ËûµÄ¼òµ¥¡¢Ç¿´ó¡¢Ã÷Îú£¬ÒѾ¿ÉÒÔÃÖ²¹ËٶȵÄȱÏÝ£¬ËûµÄÈÝÒ×ѧϰ£¬¿ÉÒÔÈÃÿ¸öϲ»¶¼ÆËã»úµÄÈ˶¼ÇáËɱà³Ì¡£(ÆäËûÓïÑÔ»ò¶à»òÉÙ»áΪÁËijÖÖÄ¿µÄÎþÉü¼òµ¥£¬Ã÷ÎúÐÔ£¬ÈÃÓï·¨ÓïÒå±äµÃ»ÞɬÄѶ®)
ËùÒÔ£¬ÎÒÃÇÓÃÎÒÃǵÄpython×öÎÒÃÇÏë×öµÄ£¬ÈÃרҵÈËÔ±ÓÃËûÃÇ×Ô¼ºµÄÓïÑԺ͹¤¾ßÈ¥¿ìËÙµÄ×öËûÃÇÏë×öµÄ°É¡£
ÏëÏë°É£¬Ã¿¸ö½Ó´¥¼ÆËã»úµÄÈ˶¼»á±à³Ì£¬¶ÔÓÚÕû¸öÉç»áµÄ·¢Õ¹»áÓжà´óµÄÍƶ¯×÷Óá£
£¨2010-5-4 flint2kim£©
£¨http://blog.csdn.net/flint2kim/archive/2010/05/04/5557509.aspx£©
£¨Ô´´ÎÄÕ£¬×ªÔØÇë×¢Ã÷³ö´¦£©
Ïà¹ØÎĵµ£º
1£® Ê×ÏȾÍÊÇÔÚ±àÒëÆ÷ÖаÑpython°²×°Ä¿Â¼include/Óëlibs/¼ÓÈ룬¶ÔÓÚÕâµãÎÒÔÚvc6ÖпÉÒÔ£¬µ«ÊÇÔÚdev c++Öм´Ê¹¼ÓÈëÁ˱àÒëÒ²»á³ö´í£¬ËµÕÒ²»µ½pythonÍ·Îļþ£¬Õâµã±È½ÏÓôÃÆ£¬²»¹ý¿¼Âǵ½Ò»°ãwindows±à³Ì¶¼ÓõÄÊÇvc£¬ËùÒÔ²¢Ã»ÓÐʲôӰÏì°É£¡£¡£¡
È»ºóÓÃ#include <Python.h>¾Í¿ÉÒÔ°ÑpythonµÄÖ÷Í·Îļþ°üº¬½øÀ´ÁË¡£
µ«Ê ......
1£¬ÏÂÔØorg.python.pydev.feature-1.5.0.1251989166.zip http://sourceforge.net/projects/pydev/files/
2£¬°²×°²å¼þµ½eclipse
3£¬ÖØÆôeclipse
×¢Ò⣺ʹÓÃ1.5.6°æ±¾pydev²å¼þ£¬´´½¨python¹¤³Ì»á±¨´í£¬Ê¹ÓÃ1.5.0°æ±¾ÎÞ´ËÎÊÌâ¡£ ......
ÐèÒªÏÈ°²×°libxml2-devel libxslt-develÕâÁ½¸örpm°ü£¬Èç¹ûʹÓ÷ÇrootÓû§°²×°£¬¿ÉÒÔÏÂÔØlibxml2ºÍlibxsltµÄÔ´´úÂë½øÐа²×°¡£ libxml2-devel¡¢libxslt-devel×°ºÃºó£¬½âѹlxmlµÄ°ü£¬Çл»µ½Õâ¸ö°üµÄ·¾¶¡£
¼ÓÈëCFLAGS½øÐбàÒëºÍ°²×°£¬ÔÚshellÏÂÒÀ´ÎÊäÈëÈçÏÂÃüÁ CFLAGS=-I/usr/include/libxml2:/usr/include/libxslt/ ......
#from pp3e Chapter 9.3
#############################################################################
# popup three new window, with style
# destroy() kills one window, quit() kills all windows and app; top-level
# windows have title, icon, iconify/deiconify and protocol for wm events;
# there ......