ʹÓà Notepad++ ±à¼ÔËÐÐ Python ³ÌÐò
Posted on 18:40:00 by ÏþÔÂ and filed under Notepad++, Python
¡¡¡¡Notepad++ ÊÇÒ»¸ö¿ªÔ´µÄÎı¾±à¼Æ÷£¬¹¦ÄÜÇ¿´ó¶øÇÒʹÓ÷½±ã¡£±à¼ºÍµ÷ÊÔ Python ³ÌÐòʹÓÃʲô±à¼Æ÷»òÕß IDE ²»Í¬ÈËÓв»Í¬¼û½â¡£ÔÚ²»¿¼ÂÇʹÓõ÷ÊÔ¹¤¾ßµÄÇé¿öÏ£¬Vim »òÕß Emacs Óû§×ÔÈ»¿ÉÒÔÎÞÊÓÆäËû±à¼Æ÷£¬²»¹ýÔÚ Windows »·¾³Ï£¬Ê¹Óà Notepad++ Ö®ÀàµÄ±à¼Æ÷Ò²ÊǺܺõÄÑ¡Ôñ¡£
¡¡¡¡ÎÒÊÇÔÚ PortableApps.com ÉÏÏÂÔØµÄ Notepad++ Portable£¬ËüµÄºÃ´¦ÊÇ¿ÉÒÔÔÚÿ´Î¹Ø±Õ³ÌÐòµÄʱºò°ÑËùÐèµÄÅäÖÃÎļþµ¥¶À±£´æ£¬Ê¡È´Ã¿Ì¨»úÆ÷ÉÏÖØÐÂÅäÖõķ³ÄÕ¡£
Tab³¤¶ÈºÍ¿Õ¸ñת»»
¡¡¡¡ÒòΪ Python ¶ÔËõ½øÒªÇóÑϸñ£¬ÎÒÃǽ« Tab ÉèÖóÉ4¸ö¿Õ¸ñ£¬ÔÚ "ÉèÖ㣾Ê×Ñ¡Ï¾±à¼££¾ÖƱí·ûÉèÖÃ" ÖÐÐ޸ġ£
Óï·¨¸ßÁÁ
¡¡¡¡Ö»ÒªÕýÈ·ÉèÖÃÁËÀ©Õ¹Ãû£¬Notepad++ ¾Í»á×Ô¶¯Ê¶±ðÓïÑÔ²¢½øÐÐÓï·¨¸ßÁÁ¡£Èç¹û¶Ô¸ßÁÁµÄÑÕÉ«»òÕß×ÖÌå²»ÂúÒ⣬ÔÚ "ÉèÖÃ->ÓïÑÔ¸ñʽÉèÖÃ" ÖпÉÒÔ½øÐÐÐ޸ġ£
×Ô¶¯Íê³É
¡¡¡¡Notepad++ Ò²ÌṩÁË×Ô¶¯Íê³ÉºÍÊäÈëÌáʾ¹¦ÄÜ£¬ÔÚ "ÉèÖÃ->Ê×Ñ¡Ïî->±¸·ÝÓë×Ô¶¯Íê³É" ÖпÉÒÔÉèÖá£Python µÄ×Ô¶¯Íê³ÉËùÐèµÄÎļþÔÚ°²×°µÄʱºò×Ô´øÁË£¬´æ·ÅÔÚ "YOUR_NPP_DIR\plugins\APIs"£¨Ïê¼û¹Ù·½FAQ£ºAuto-completion£©¡£Ä¬ÈϵĿì½Ý·½Ê½ÊÇ Ctrl+Space ºÍ Ctrl+Enter£¬¿ÉÄܺÍÊäÈë·¨µÄ¿ì½Ý¼ü³åÍ»£¬²»¹ý Notepad++ µÄËùÓпì½Ý¼ü¶¼¿ÉÒÔ×Ô¶¨Òå¡£
ÔËÐгÌÐò
¡¡¡¡µã»÷ "ÔËÐУ£¾ÔËÐÐ" (ĬÈÏ¿ì½Ý¼üÊÇ F5 )£¬ÔÚµ¯³öµÄ²Ëµ¥ÖÐÊäÈ룺
cmd /k C:\Python30\python.exe "$(FULL_CURRENT_PATH)" & PAUSE & EXIT
Ñ¡Ôñ "±£´æ"£¬¾Í¿ÉÒÔ¸øÕâÌõÃüÁîÉèÖÃÒ»¸ö¿ì½Ý¼ü²¢ÆðÒ»¸öÃû×Ö£¬±ÈÈç½Ð "Run Python"¡£ÒÔºóÔËÐÐÖ±½Ó°´×Ô¶¨ÒåµÄ¿ì½Ý¼ü¾Í¿ÉÒÔÁË¡£×¢ÒâÈç¹ûÏëÐÞ¸ÄÕâ¸ö¿ì½Ý¼ü£¬¿ÉÒÔÔÚ "ÉèÖ㣾¹ÜÀí¿ì½Ý¼ü££¾Run Commands" ÖÐÐ޸ġ£»¹Óм¸µã˵Ã÷£º
Èç¹ûÏëÐÞ¸ÄÕâÌõÃüÁĿǰֻÄÜͨ¹ýÐÞ¸Ä shortcuts.xml Îļþ£¬Õâ¸öÎļþ±£´æÔÚ Notepad++ µÄÅäÖÃÎļþÖУ¬¿ÉÄÜÔÚ Notepad++ µÄĿ¼£¬Ò²¿ÉÄÜÔÚ Documents and Settings Ï嵀 Application Data ÄÚ¡£
$(FULL_CURRENT_PATH) µÄº¬ÒåÊǵ±Ç°ÎļþµÄÍêÕû·¾¶£¬ÕâÊÇ Notepad++ µÄºê¶¨Ò壬¸ü¶àµÄÏà¹Øºê¿ÉÒԲμû¹Ù·½FAQ£ºRun external tools¡£×¢ÒâÒªÓÃÒýºÅÀ¨ÆðÀ´£¬·Àֹ·¾¶ÖмäÓпոñ¡£
Ö±½ÓÖ´ÐÐ python.exe ÔÚÔËÐнáÊøºó´°¿Ú»á×Ô¶¯¹Ø±Õ£¬ËùÒÔÒªÓà cmd À´Ö´ÐС££¨ÔÚ Python 2.5 ËÆºõÓÐËù²»Í¬£¬µ«ÊÇ 3.0 ÐèÒªÕâÑùÉèÖᣣ©
cmd /k µÄº¬ÒåÊÇÖ´ÐкóÃæµÄÃüÁ²¢ÇÒÖ´ÐÐÍê±Ïºó±£Áô´°¿Ú
Ïà¹ØÎĵµ£º
±³ºóÓÐÒ»´óÌ×µÄÀíÂÛ £¡£¡¹ÜËüÄØ£¡£¿ÀíÂÛÄܵ±·¹³ÔÂð£¿
ÏÈÖªµÀÔõôÓÃÔÙ˵£¡
¼Çס£ºÔªÀà¾ÍÊÇÀàµÄÄ£°å——Ì«ÐÎÏóÁËÁËѽ£¬»ô»ô¡£
ÎÒÒªÒ»´óȺµÄÀà¶¼¾ßÓÐÒ»ÖÐÌØµã£¬ÎÒÔõô¸øËûÃǼÓÉÏÄØ£¿Ä£°åÄ£°åÂð£¬ÎÒ´ÓÕâ¸öÄ£°å´´½¨Ò»ÈºÀ಻¾ÍOKÁË£¿ÄǾÍÐèÒªÔªÀàÁË¡£»ô»ô¡·
¶¨ÒåÒ»¸öÔªÀࣨ¾ÍËùÒ»¸öÀàµÄÄ£°å£¡Äª¶àÏ룬»¹Òª¼ÇסÕâÊÇÀ ......
ÔÎÄÁ´½Ó
Ôø¾ÔÚÉîÈëdz³öjavaÖÐÎÄÎÊÌâ
ϵ
ÁÐÖÐÑо¿¹ýjavaµÄÖÐÎÄÎÊÌ⣬ÏÖÔÚÖÐÎÄÎÊÌâÒѾ²»ÔÙî¿°íÎÒÔÚjavaÊÀ½çÖÐÂþÓεĽŲ½ÁË¡£×î½ü£¬¶ÔPython²úÉúÁËŨºñµÄÐËȤ£¬ËÖªµÀ¸úÖÐÎÄÎÊÌâÕâ¸ö
ÀÏÅóÓÑÓÖÒ»´Î²»ÆÚ¶øÓö¡£¿´À´£¬ÔÚ´úÂëÊÀ½çÖУ¬ÖÐÎÄÎÊÌâ»áÔںܳ¤Ò»¶Îʱ¼äÀï¸úÎÒÃÇÐÎÓ°²»Àë¡£ÕâÒ²Äѹ֣¬Ë ......
pySerial
Overview
This module encapsulates the access for the serial port. It provides backends for Python running on Windows, Linux, BSD (possibly any POSIX compliant system), Jython and IronPython (.NET and Mono). The module named "serial" automatically selects the appropriate backend.
It is re ......
£ª javaÇ¿ÖÆÊ¹ÓÃOO½øÐÐÓ¦Óÿª·¢£¬Python¿ÉÒÔÓú¯Êýʽ±à³Ì¡£º¯ÊýʽÓÐʱÏԵ÷dz£¼òµ¥£¬´úÂëÁ¿¾Þ¼õ¡£»ØÏëÆðJava¶¯²»¶¯µÄN²ã¡¢»¹ÓÐÒ»¸ö¸ö¶ÔÏó£¬ÕæµÄÓÐÄÇÖÖÐÄÒªÂ𣿶øÇÒPython±¾ÉíÓïÑÔ·ç¸ñ¾Í¼ò½à£¬ÔÙ¼ÓÉϼò½àµÄº¯Êý£¬ÔÚ¿ª·¢Ð§ÂÊ¡¢Debug¡¢²âÊÔÉÏËÆºõ»áÓÐÓÅÊÆ¡£
£ª ´óÐ͸´ÔÓÏîÄ¿µÄÐÔÄܸü¶àµØÌåÏÖÔڼܹ¹¡¢Ó²¼þÍØÆË½á¹¹Éϵȡ£Ó¦¶Ô ......
1. µÚÒ»Õ¡¡Python¿ìËÙÈëÃÅ
±¾ÕÂÊÇPythonµÄ¿ìËÙÈëÃÅ£¬ÔÚÕâÒ»Õ²¢²»Éæ¼°pythonµÄÌØÊâ¹æÔòºÍϸ½Ú£¬Ä¿±êÊÇͨ¹ýʾÀýʹÄã¿ìËÙÁ˽âPythonÓïÑÔµÄÌØµã¡£±¾Õ¼òÒª½éÉÜÁ˱äÁ¿,±í´ïʽ,¿ØÖÆÁ÷,º¯ÊýÒÔ¼°ÊäÈë/Êä³öµÄ»ù±¾¸ÅÄî,ÔÚÕâÒ»Õ²»Éæ¼°PythonÓïÑԵĸ߼¶ÌØÐÔ¡£¾¡¹ÜÈç´Ë£¬ÓоÑéµÄ³ÌÐòÔ±»¹ÊÇÄܹ»Í¨¹ýÔĶÁ±¾ÕµIJÄÁÏ´´½¨¸ß¼¶³ÌÐò¡£ÎÒÃÇ ......