PythonÐÂÊÖ±¨µ½ ´ó¼ÒÍƼö¸öIDE
×î½üÒ»¸öÏîÄ¿ÂíÉϾÍÒªÓÃPython±àÁË ´ó¼ÒÍƼö¸öIDE¡£¡£¡£
1 Ãâ·Ñ¡£¡£¡£
2 Ìå»ý×îºÃСһµã
3 ¹¦ÄÜÇ¿´ó
£¨ÅÅÃû²»·ÖÏȺ󡣡£¡£·Ï»°¡£¡££©
emacs,×î´óµÄÓŵãÊÇÒòΪ·ÇͼÐνçÃ棬ÓÃSSHÔ¶³ÌµÇ¼Ҳ¿ÉÒÔʹÓá£ËùÒÔ¿ÉÒÔÓÃÊÖ»ú¼ÓSSHÖÕ¶ËÔÚÈκεط½±à³Ì¡£
VIM ²»´í
Çá±ãµÄ»°£¬ÍƼöʹÓÃgeany£¬¾ø¶ÔÊÇ¡®ÇᡯÁ¿¼¶µÄ£¬µ«Êǹ¦Äܲ»´í£¬
¿ÉÒÔÊÔÊÔÀ¶ÂìÒϹ¤×÷ÊÒ¿ª·¢µÄScript.NET£¬Ö§³ÖPythonµÈ½Å±¾µÄ±à¼¡¢ÔËÐС¢µ÷ÊÔ¡£
ÏÂÔصØÖ·£º
http://www.blueantstudio.net
emacs£¬vim ÊDZà¼Æ÷£¬²»Ëãide°É
²»±ØÓÃIDE, ÍƼöscite±à¼Æ÷£¬¿ÉÒÔÓÐÓï·¨¼ÓÁÁ£¬Ò²ºÜ·½±ãʹÓá£
open, free, lite, green.
pydevºÜºÃ£¬²»¹ý²»Âú×ãÇáÁ¿£¬
ÄǾÍpyscripter°É£¬²»¹ýÖ»ÄÜÔÚWindowsÏÂʹÓÃ
pydev ²»´í µ«ÊÇ»úÆ÷ÒªºÃ
Èç¹ûÄÜÓÃD°æ Wing IDE ·Ç³£ºÃʹ ºÍVC Ò»Ñù
¿ì½áÌù°É£¡
Ïà¹ØÎÊ´ð£º
Ïñ C µÄ scanf() ÄÇÑù
±ÈÈç¶ÁÈë 1 2 3 a b c
ÿ´Î¶ÁÈëÒ»¸ö
ÏÂÃæÕâ¸öÓ¦¸ÃÊÇÄãÏëÒªµÄ°É£º
Python code:
>>> k = raw_input()
0 0123 ds dsl sd
>>> k
'0 0123 ds dsl sd'
>>> ......
ÓźñµÄ¸å³ê£¬³ÏÕÐPython¼¼ÊõÈËÔ±²ÎÓë¸÷ÖÖ¼¼ÊõÊé¼®³ö°æ¡£
ͨ¹ý¸ÃÊé¼®£¬×÷Õß¿ÉÒԵõ½Èçϱ¨³ê£º
1¡¢·áºñµÄ¸å³ê¡£
2¡¢Êé¼®Öø×÷µÄÊðÃûȨ¡£
3¡¢¶Ô×÷ÕߺÍÊé½øÐÐÐû´«£¬Ìá¸ß×÷ÕßÔÚ¼¼ÊõȦ×ÓÀ ......
СµÜ½Ó´¥python 2¸öÐÇÆÚÁË£¬°²×°µÄÊÇpython3.1°æ¡£
ÎÒÓõÄÊÇwindows7£¬Ïëд¸öµ÷ÓÃdllµÄ³ÌÐòʵ¼ù¡£ÎÊÌâÀ´ÁË£º
C++´úÂ룺
extern "C" int __stdcall test();
int __stdcall te ......
×î½üÃÔÉÏÁËPython£¬ÔÚ˼¿¼ÔõÑùÓÃPythonд¸ö³ÌÐòʵÏÖ¶ÔÖ¸¶¨ÍøÂç¶Ë¿ÚµÄÊý¾Ý°üµÄץȡºÍ½âÎö£¬¿ÒÇë¸ßÊÖÖ¸½Ì£¡£¡
ÄãºÃ£¡
Ê×ÏÈ£¬ÊµÏÖ²¶°üµÄ¹¦ÄÜÐèҪʹÓÃwincap£¨windowsÏ£©£¬»òÕßlibpcap£¨LinuxÏ£©¡£
¶øPythonÌṩÁ ......
C++Öе÷ÓÃpythonº¯Êý£¬·¢ÏÖpythonº¯ÊýµÄÒì³£ÔÚC++ÖÐÎÞ·¨²¶»ñ¡£
µ÷Óú¯ÊýÈçÏ£¬Çë´óÏÀ½â»ó
unsigned long CPythonHelper::Execute(const std::string& mml_cmd,
u ......