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

pythonµÄÒýÓüÆÊý

ÎÒÓÃÁËdef CreateMyDialog(self):
        dlg = MyDialog(None, -1, ''.decode('utf8'), (300,300), (300,200), wx.DEFAULT_DIALOG_STYLE | wx.DIALOG_NO_PARENT )
        count1 = sys.getrefcount(dlg)
        dlg.Show()
ÎÒÔÚÒ»¸öº¯ÊýÀïÃæ´´½¨ÁËÒ»¸ö¶Ô»°¿ò µÃµ½µÄ¼ÆÊýÊÇ4 Ϊʲô²»ÊÇ1ÄØ
½âÊÍÐÔÓïÑÔÄÜ×öµÃµ½1ô£¿

ÒýÓÃ
½âÊÍÐÔÓïÑÔÄÜ×öµÃµ½1ô£¿

ÄÜÏêϸ˵һÏÂÂð

43842050 Python,c/c++Ⱥ£¬ÓÐÖ¾ÏëѧPython,CºÍC++µÄÅóÓÑÇë¼ÓÈëȺ¡£

°ïÎÒ¶¥Ò»ÏÂÌû×Ó°¡ ¶¼³ÁÁË


Ïà¹ØÎÊ´ð£º

luaǶÈëCÖеÄÁ¢¼´Ö´ÐÐÀàËÆpythonµÄPyRun_SimpleString

python capiÊÇÕâÑùµÄPyRun_SimpleString
lua µÄÔõôдÄØ£¿
Python code:
luaL_dostring
......

c++ǶÈëpython·¢²¼ÎÊÌâ

ÎÒÓÃ
#include "python.h"
Py_Initialize();
PyRun_SimpleString("execfile('x.py')");
Íâ´øpython2.6.dllÕâÖÖ·½Ê½ÈÃc++ǶÈëpython£¬·¢²¼³ÌÐòµÄʱºò£¬¾ÓÈ»»¹ÊÇҪװpython£ ......

[ÇóÖú]Let's PythonÊÓƵµÚÒ»¼¯Â¼ÖÆÍê³É

ºÇºÇ, ×òÌì¼ÁËLet's PythonµÄµÚÒ»¼¯, µÚÒ»´Î¼, ûɶ¾­Ñé, ÓõÄÊÇCamtasia Studio, ½á¹ûÒ»¼¯Â¼ÁË85·ÖÖÓ, ¸ã800¶àM, ûµØ·½´«ÁË, ÄÄλÓкõãµÄÃâ·Ñ¿Õ¼ä, ·ÖÏíÒ»¸ö°¡.....ÒªÖ§³Ö¶ÏµãÐø´«µÄ°¡.


һС´é²»Ã ......

PythonÓë½Ó¿Ú

ÁÄÁÄ£¬ÎÒÒ»Ö±²»ÊǺÜÀí½âΪʲô¶¯Ì¬ÓïÑԾͲ»ÐèÒª½Ó¿Ú£¬ÎÒÖ»ÊÇ´Ó½¨Ä£µÄ½Ç¶È¿¼ÂÇ£¬½Ó¿ÚÊÇÒ»ÖÖºÏÀíµÄ½¨Ä£·½Ê½Ñ½£¬ÌرðÊÇ´óµÄÏîÄ¿£¬¶øÇÒ´úÂëÈÝÒ×ά»¤¡£Ïà±È½Ó¿Ú¶àÖؼ̳ÐÊÇÒ»ÖÖºÜÔã¸âµÄ·½Ê½¡£ÎªÊ²Ã´¶¯Ì¬ÓïÑԾͲ»ÐèÒª½Ó¿Ú£¬ ......

¹ØÓÚpython¶ÁÁÐÊý¾Ý

a.txt
ÎļþÄÚÈÝÈçÏ£¨ÆäÖпհײ¿·Ö¶¼ÊÇÒÔtab¼ü¸ô¿ª£©£º

om 2 0.68 0.83 0 0 0 0 0 0
pos
ppa 17 0.74 0.9 0 0 0 1 2 2
ppc    2           & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ