python 2.5.x ÕÒ²»µ½ python25_d.lib ½â¾ö
1£® Ê×ÏȾÍÊÇÔÚ±àÒëÆ÷ÖаÑpython°²×°Ä¿Â¼include/Óëlibs/¼ÓÈ룬¶ÔÓÚÕâµãÎÒÔÚvc6ÖпÉÒÔ£¬µ«ÊÇÔÚdev c++Öм´Ê¹¼ÓÈëÁ˱àÒëÒ²»á³ö´í£¬ËµÕÒ²»µ½pythonÍ·Îļþ£¬Õâµã±È½ÏÓôÃÆ£¬²»¹ý¿¼Âǵ½Ò»°ãwindows±à³Ì¶¼ÓõÄÊÇvc£¬ËùÒÔ²¢Ã»ÓÐʲôӰÏì°É£¡£¡£¡
È»ºóÓÃ#include <Python.h>¾Í¿ÉÒÔ°ÑpythonµÄÖ÷Í·Îļþ°üº¬½øÀ´ÁË¡£
µ«ÊÇÔÚµ÷ÊÔµÄʱºò£¬»á³öÏÖ˵ÕÒ²»µ½python25_d.libµÄÁ´½Ó´íÎ󣬳öÏÖÕâ¸ö´íÎóµÄÔÒòÊÇpython_d.libÊÇ¿âµÄµ÷ÊÔºóÐÎʽ£¬µ±ÎÒÃÇÒÔdebugģʽ±àÒ빤³Ìʱ£¬python¾ÍÓÃÕâ¸ölibÎļþ£¬µ«ÊÇÕâ¸öÎļþÊDz»¿ÉÓõġ£¶ÔÓÚÕâµã£¬×î¿ìµÄ°ì·¨¾ÍÊÇÇ¿ÖÆÒªÇópythonÔÚÈκÎÇé¿ö϶¼ÊÇÓ÷ǵ÷ÊÔ°æ±¾£¬¾Í¿ÉÒÔÁË¡£Òª×öµ½ÕâÒ»µã
a£© ÔÚpythonĿ¼includeÎļþ¼ÐÏ£¬´ò¿ªpyconfig.h£¬ÕÒµ½ÈçÏÂÓï¾ä
# ifdef _DEBUG
# pragma comment(lib,"python25_d.lib")
# else
# pragma comment(lib,"python25.lib")
# endif /* _DEBUG */
½«python25_d.lib¸Ä³Épython25.lib
b£© ÕÒµ½
#ifdef _DEBUG
# define Py_DEBUG
#endif
½«ÆäÓÃ/**/ÆÁ±Î
ÕâÑù¾Í¿ÉÒÔÁË¡£
2.Ö±½Óµ½libsÎļþ¼ÐÖн«python25.lib ¸´ÖÆÒ»¸ö½Ð×öpython25_d.libÎļþµÄ·ÅÔÚlibsĿ¼ÏÂÒ²¿É±àÒë
Ïà¹ØÎĵµ£º
Memcached
ÊÇdanga.com£¨ÔËÓªLiveJournalµÄ¼¼ÊõÍŶӣ©¿ª·¢µÄÒ»Ì×·Ö²¼Ê½ÄÚ´æ¶ÔÏ󻺴æϵͳ£¬ÓÃÓÚÔÚ¶¯Ì¬ÏµÍ³ÖмõÉÙÊý¾Ý¿â¸ºÔØ£¬ÌáÉýÐÔÄÜ¡£
ÍøÉÏÓкིܶµ½Memcached For LinuxµÄ°²×°½Ì³Ì£¬µ«ÊÇMemcached For Win32 and PythonµÄ¾ÍÉõÉÙ£¬Å¼¶ûgoogleÕÒµ½Ò»Æª
±È½ÏÏà½üµÄÓ¢ÎĽ̳̣¬¾õµÃ ......
¡¾windows+python3.1.2¡¿
·¢²¼pythonÓ¦ÓóÌÐòÊǸöºÜÂé·³µÄÊ£¬ÒòΪ<1>ÎÞ·¨±àÒëÔÉúcode<2>ÿ¸ö°æ±¾µÄ×Ö½ÚÂ벻ͬ<3>Èç¹ûÖ±½ÓÉÏÔ´Âë»áËðº¦×Ô¼ºµÄÀûÒæ——µÈµÈ
·½·¨1——ÊÖ¶¯´ò°ü
Ôõô´ò°üÄØ£¿Ò»¸öpythonÎļþ¼ÐÒª¶þÊ®¶àMB°¡£¡
yes£¡ÎÒÃǾÍÒªÇåÀíÎÞÓõĶ«Î÷£¡
ÏÈдһ¸öwin.pyÎļþ£º ......
There should be one—--and preferably only one –--obvious way to do it.
......
[Ô´´]PythonÄÚ´æй©²é¿´Æ÷ʵÏÖ
by AKara 2009-04-23 @ http://blog.csdn.net/akara @ akaras@163.com
---------------------------------------------------------------------
Ϊ¸üºÃ¶¨Î»PythonÄÚ´æй©Çé¿ö£¬Ð´ÁËÒ»¸öеÄPythonÄÚ´æй©²é¿´Æ÷Ä£¿é¡£
Ä£¿éÓÐÈçϹ¦ÄÜ£º
* ½«ËùÓ ......
from: http://www.cnblogs.com/jimnox/archive/2009/12/08/tips-to-python-challenge.html
Python ChallengeÊÇÒ»¸öÍøÒ³´³¹ØÓÎÏ·£¬Í¨¹ýһЩÌáʾÕÒ³öÏÂÒ»¹ØµÄÍøÒ³µØÖ·¡£ÓëÖÚ²»Í¬µÄÊÇ£¬ËüÊÇרÃÅΪ³ÌÐòÔ±Éè¼ÆµÄ£¬ÒòΪ´ó¶àÊý¹Ø¿¨¶¼Òª±à³ÌÀ´ËãŶ£¡£¡
È¥ÄêºÍͬѧһÆðÍæµÄ£¬Ëû×öÁË´ó°ë£¬ÎÒ×öÁËС°ë£¬×÷±×ÁËһЩ£¬33¹Øȫͨ£¬½ ......