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ô£¿
ÄÜÏêϸ˵һÏÂÂð
43842050 Python,c/c++Ⱥ£¬ÓÐÖ¾ÏëѧPython,CºÍC++µÄÅóÓÑÇë¼ÓÈëȺ¡£
°ïÎÒ¶¥Ò»ÏÂÌû×Ó°¡ ¶¼³ÁÁË
Ïà¹ØÎÊ´ð£º
python capiÊÇÕâÑùµÄPyRun_SimpleString
lua µÄÔõôдÄØ£¿
Python code:
luaL_dostring
......
ÎÒÓÃ
#include "python.h"
Py_Initialize();
PyRun_SimpleString("execfile('x.py')");
Íâ´øpython2.6.dllÕâÖÖ·½Ê½ÈÃc++ǶÈëpython£¬·¢²¼³ÌÐòµÄʱºò£¬¾ÓÈ»»¹ÊÇҪװpython£ ......
ºÇºÇ, ×òÌì¼ÁËLet's PythonµÄµÚÒ»¼¯, µÚÒ»´Î¼, ûɶ¾Ñé, ÓõÄÊÇCamtasia Studio, ½á¹ûÒ»¼¯Â¼ÁË85·ÖÖÓ, ¸ã800¶àM, ûµØ·½´«ÁË, ÄÄλÓкõãµÄÃâ·Ñ¿Õ¼ä, ·ÖÏíÒ»¸ö°¡.....ÒªÖ§³Ö¶ÏµãÐø´«µÄ°¡.
һС´é²»Ã ......
ÁÄÁÄ£¬ÎÒÒ»Ö±²»ÊǺÜÀí½âΪʲô¶¯Ì¬ÓïÑԾͲ»ÐèÒª½Ó¿Ú£¬ÎÒÖ»ÊÇ´Ó½¨Ä£µÄ½Ç¶È¿¼ÂÇ£¬½Ó¿ÚÊÇÒ»ÖÖºÏÀíµÄ½¨Ä£·½Ê½Ñ½£¬ÌرðÊÇ´óµÄÏîÄ¿£¬¶øÇÒ´úÂëÈÝÒ×ά»¤¡£Ïà±È½Ó¿Ú¶àÖؼ̳ÐÊÇÒ»ÖÖºÜÔã¸âµÄ·½Ê½¡£ÎªÊ²Ã´¶¯Ì¬ÓïÑԾͲ»ÐèÒª½Ó¿Ú£¬ ......
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 & ......