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

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Ŀ¼ÏÂÒ²¿É±àÒë 


Ïà¹ØÎĵµ£º

³õʼ»¯º¯ÊýÖеÄÐ麯Êýµ÷Ó㨠C++ vs python £©

´úÂë+½á¹û£¬²»×ö½âÊÍ
µ±È»£¬¶ÔÓÚpythonûÓÐvirtual functionһ˵£¬¹À¼Æµ±×÷¶Ô±ÈÒ»¸öÀý×Ó¿´¿´°É¡£
#include <iostream>
using namespace std;
class base
{
public:
virtual void foo() { cout << "base" << endl; }
base() { foo() ;}
};
class derive: public base
{
pub ......

Python ÖеÄ×Ö·û±àÂë

1¡¢strÀàÐÍ¿ÉÒÔÀí½âΪһ¸ö¶þ½øÖÆblock£¬»òmultibyte
2¡¢multibyte_str.decode("<multibyte_encode_method>")  -> unicode
3¡¢unicode_str.encode("<multibyte_encode_method>")  -> multibyte_str(binary block)
4¡¢unicode_str µÄ²Ù×÷²ÎÊýҲӦΪunicode£¬È磺unicode_str.find("Ñù±¾".deco ......

·ÉÐÅÆóÒµ°æʹÓÃÁËpython...

¶ÔÓÚ¸öÈ˰棬ʹÓÃÁË.NET£¬°²×°ÍêÆóÒµ°æºó£¬¿´ÁË¿´Ä¿Â¼£¬·¢ÏÖ´óÁ¿python½Å±¾¡£dllÖÐÒ²ÓÐsqlite3.dll
C:\Program Files\China Mobile\EfetionĿ¼ÏÂÎļþ£º
Addin
boost_python.dll
bz2.pyd
dbghelp.dll
EFetion.exe
EFetion.exe.manifest
EFWP.exe
EFXLiveUpdate.exe
EFXLiveUpdate.exe.manifest
Face
Help.chm
......

python challenge

from: http://www.cnblogs.com/jimnox/archive/2009/12/08/tips-to-python-challenge.html
Python ChallengeÊÇÒ»¸öÍøÒ³´³¹ØÓÎÏ·£¬Í¨¹ýһЩÌáʾÕÒ³öÏÂÒ»¹ØµÄÍøÒ³µØÖ·¡£ÓëÖÚ²»Í¬µÄÊÇ£¬ËüÊÇרÃÅΪ³ÌÐòÔ±Éè¼ÆµÄ£¬ÒòΪ´ó¶àÊý¹Ø¿¨¶¼Òª±à³ÌÀ´ËãŶ£¡£¡
È¥ÄêºÍͬѧһÆðÍæµÄ£¬Ëû×öÁË´ó°ë£¬ÎÒ×öÁËС°ë£¬×÷±×ÁËһЩ£¬33¹Øȫͨ£¬½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ