ΪʲôҪѧϰpython pythonѧϰʱ¼ä
PythonÊÇÃÀ¹úÖ÷Á÷´óѧÊÜ»¶ÓµÄÈëÃűà³ÌÓïÑÔ£¬µ®ÉúÖÁ½ñÒѾ¹ý25¸öÄêÍ·¡£Ïà¶ÔÓÚÆäËûÓïÑÔÀ´Ëµ£¬Ëü¸ü¼ÓÒ×ѧ¡¢Ò׶Á£¬·Ç³£ÊʺϿìËÙ¿ª·¢£¬Ñ§Ï°ËüµÄÈËÒ²Ô½À´Ô½¶à£¬ËüΪʲôÓÐÈç´Ë´óµÄÎüÒýÁ¦£¬ÏÂÃæÎÒÃǾÍÀ´Ì¸Ì¸Ñ§Ï°pythonµÄÀíÓÉ¡£
Ò»¡¢¼òµ¥Ò×ѧ
PythonµÄÓï·¨·Ç³£½Ó½ü×ÔÈ»ÓïÑÔ(Ó¢Óï)£¬¾«¼òÁ˺ܶ಻±ØÒªµÄ·ÖºÅºÍÀ¨ºÅ£¬·Ç³£ÈÝÒ×ÔĶÁºÍÀí½â¡£PythonµÄÓï·¨´Ó2001ÄêµÄPEP8 style guide for Python¿ªÊ¼¾ÍµÃµ½Á˺ܺõĹ淶¡£
¼´Ê¹ÊDZà³Ì³õѧÕßÒ²ÄܽÏΪÇáËɵؿªÊ¼PythonµÄѧϰÂó̡£
¶þ¡¢¿ÉÔÚÈκÎƽ̨ÉÏÔËÐÐ
´ó¶àÊýÁ÷Ðбà³ÌÓïÑÔ£¬ÀýÈçJava¡¢C++¡¢C¶¼ÄÜ¿çƽ̨¶øÇÒ¿ªÔ´£¬PythonÒ²ÊÇÈç´Ë£¬Äã¿ÉÒÔÔÚRaspberry-PiÊ÷Ý®ÅÉÉõÖÁ¸üСµÄÉ豸ÈçMicro:BitÉÏÔËÐÐPython¡£
Èý¡¢PythonÊÇÒ»¸öºÜ°ôµÄͨÓÃÓïÑÔ
Ò²ÐíÄã²»»áÓÃPythonÀ´±àд²Ù×÷ϵͳ»òÓÎÏ·´ó×÷£¬µ«²»¿É·ñÈÏPythonÓÐןܺõÄÆÕÊÊÐÔ£¬¼¸ºõ¿ÉÒÔÓÃÀ´¿ª·¢ÈκÎ×ÀÃæ»òwebÓ¦Óûò¿ò¼Ü¡£½üÄêÀ´Pythonͨ¹ýSciPyÒѾÀ©Õ¹µ½ÁË¿Æѧ¡¢¹¤³ÌºÍÊýѧ¼ÆËãÁìÓò¡£
PythonÄ¿Ç°ÓÐÁ½¸öÁ÷Ðа汾2.xºÍ3.x£¬Ð°汾ºÅ·Ö±ðÊÇ2.7.10ºÍ3.5.0£¬¶ÔÓÚѧϰpythonµÄÐÂÊÖ£¬½¨ÒéÖ±½ÓÏÂÔØ3.x°æ±¾£¬ËäÈ»²»ÄÜÏòÇ°¼æÈÝ2.x°æ±¾£¬µ«ÊÇÓй¤¾ß¿ÉÒÔʵÏÖ2.xÏò3.xµÄת»»¡£
ËÄ¡¢±àÒëËٶȿì
½âÊÍÐÍÓïÑÔͨ³£±È»ã±àÓïÑÔµÄËÙ¶ÈÂý£¬µ«½üÄêÀ´Ëæ×ſƼ¼µÄÈ«Ãæ·¢Õ¹£¬PythonµÄruntimeÖ´ÐÐЧÂÊÒ²Ô½À´Ô½¸ß¡£¶ÔÓÚÖ´ÐÐЧÂÊÓиü¸ßµÄÈËÀ´Ëµ£¬»¹ÓÐÒ»¸öÃûΪPyPyµÄÏîÄ¿Äܹ»½«PythonµÄËٶȽøÒ»²½ÍƸߣ¬±ÈCPython¿ìºÜ¶à¡£
Îå¡¢PythonÔÚ²»¶Ï¸Ä½ø
Python²¢·ÇÍêÓïÑÔ£¬µ«ÔÚ²»¶Ï¸Ä½øÖУ¬ÀýÈçÉϸöÔÂз¢²¼µÄ3.5.0°æ±¾Ôö¼ÓÁ˾ØÕó³Ë·¨µÄÔËËã·û£¬Ö§³ÖÒì²½ºÍµÈºò¾ä·¨µÄÐͬ³ÌÐò£¬ÒÔ¼°ÐµĿìËÙĿ¼±éÀúº¯ÊýµÈ¶ÔÓÚÐÂÈ˶øÑÔ£¬ÎÞÂÛѧϰʲô¼¼Êõ£¬¶¼ÒªÒÔ¹ÄÀøµÄ×Ë̬³öÏÖ¡£Ì«¶àÓÃнˮºÍÄã¸öÈËËù¿´µ½µÄÏÖ×´È¥ºâÁ¿Ò»Ãż¼Êõ£¬ÄÇÊÇǷȱÑÛ¹âµÄ¡£ÈκÎÒ»Ãż¼Êõ£¬Ò»µ©ÓÐÈËѧϰ£¬ËûÓпÉÄÜÖð½¥³ÉΪÕâ¸öÁìÓòµÄר¼Ò£¬¼´±ãÔÙÀÄÔÙûÓÐÈËÓõĿª·¢ÓïÑÔ¼¼Êõ£¬ËûÒ²ÓпÉÄܾÍÊÇÃ÷Èյĵì»ùÕß»òÕß´óʦ¡£
ѧϰpython ÊÇʱ´ú¶Ô¸øÓèÎÒÃǵĻú»á£¬×¥×¡Õâ¸ö»ú»áÄã¾Í»á³ÉΪʱ´úµÄÖ÷Ô×Õߣ¬Äã¾Í»á˳Ӧʱ´ú³±Á÷£¬¹ýÉÏ×Ô¼ºÏëÒªµÄÉú»î£¬ÊµÏÖÄãµÄ¸ßн¾ÍÒµÃΡ£
ÀÏÄк¢½ÌÓýÊÇÄãѧϰPythonµÄ¼ÑÑ¡Ôñ£¡ÀÏÄк¢½ÌÓýÊÇÒµ½ç½ÏÔ翪ÉèPython¿Î³ÌµÄÅàѵ»ú¹¹£¬ÍêÉƵĿγÌÌåϵ¡¢Ò»Á÷µÄ·þÎñÍŶӡ¢¸üÓÐÏñAlex¡¢ÎäsirÕâÑùÉîÊÜѧԱ°®´÷µÄ½²Ê¦ÍŶӣ¬ÔÙ¼ÓÉÏ¿ÆѧµÄ½Ìѧ·½·¨£¬ÀÏÄк¢½ÌÓýÅàÑøÁËÒ»´óÅú¸ßнIT¼¼ÊõÈ˲ţ¡Èç¹ûÄãÏë³ÉΪËûÃÇÖеÄÒ»Ô±£¬¾Í¸Ï¿ì¼ÓÈëÀÏÄк¢½ÌÓý°É£¡
Ò»¡¢¼òµ¥Ò×ѧ
PythonµÄÓï·¨·Ç³£½Ó½ü×ÔÈ»ÓïÑÔ(Ó¢Óï)£¬¾«¼òÁ˺ܶ಻±ØÒªµÄ·ÖºÅºÍÀ¨ºÅ£¬·Ç³£ÈÝÒ×ÔĶÁºÍÀí½â¡£PythonµÄÓï·¨´Ó2001ÄêµÄPEP8 style guide for Python¿ªÊ¼¾ÍµÃµ½Á˺ܺõĹ淶¡£
¼´Ê¹ÊDZà³Ì³õѧÕßÒ²ÄܽÏΪÇáËɵؿªÊ¼PythonµÄѧϰÂó̡£
¶þ¡¢¿ÉÔÚÈκÎƽ̨ÉÏÔËÐÐ
´ó¶àÊýÁ÷Ðбà³ÌÓïÑÔ£¬ÀýÈçJava¡¢C++¡¢C¶¼ÄÜ¿çƽ̨¶øÇÒ¿ªÔ´£¬PythonÒ²ÊÇÈç´Ë£¬Äã¿ÉÒÔÔÚRaspberry-PiÊ÷Ý®ÅÉÉõÖÁ¸üСµÄÉ豸ÈçMicro:BitÉÏÔËÐÐPython¡£
Èý¡¢PythonÊÇÒ»¸öºÜ°ôµÄͨÓÃÓïÑÔ
Ò²ÐíÄã²»»áÓÃPythonÀ´±àд²Ù×÷ϵͳ»òÓÎÏ·´ó×÷£¬µ«²»¿É·ñÈÏPythonÓÐןܺõÄÆÕÊÊÐÔ£¬¼¸ºõ¿ÉÒÔÓÃÀ´¿ª·¢ÈκÎ×ÀÃæ»òwebÓ¦Óûò¿ò¼Ü¡£½üÄêÀ´Pythonͨ¹ýSciPyÒѾÀ©Õ¹µ½ÁË¿Æѧ¡¢¹¤³ÌºÍÊýѧ¼ÆËãÁìÓò¡£
PythonÄ¿Ç°ÓÐÁ½¸öÁ÷Ðа汾2.xºÍ3.x£¬Ð°汾ºÅ·Ö±ðÊÇ2.7.10ºÍ3.5.0£¬¶ÔÓÚѧϰpythonµÄÐÂÊÖ£¬½¨ÒéÖ±½ÓÏÂÔØ3.x°æ±¾£¬ËäÈ»²»ÄÜÏòÇ°¼æÈÝ2.x°æ±¾£¬µ«ÊÇÓй¤¾ß¿ÉÒÔʵÏÖ2.xÏò3.xµÄת»»¡£
ËÄ¡¢±àÒëËٶȿì
½âÊÍÐÍÓïÑÔͨ³£±È»ã±àÓïÑÔµÄËÙ¶ÈÂý£¬µ«½üÄêÀ´Ëæ×ſƼ¼µÄÈ«Ãæ·¢Õ¹£¬PythonµÄruntimeÖ´ÐÐЧÂÊÒ²Ô½À´Ô½¸ß¡£¶ÔÓÚÖ´ÐÐЧÂÊÓиü¸ßµÄÈËÀ´Ëµ£¬»¹ÓÐÒ»¸öÃûΪPyPyµÄÏîÄ¿Äܹ»½«PythonµÄËٶȽøÒ»²½ÍƸߣ¬±ÈCPython¿ìºÜ¶à¡£
Îå¡¢PythonÔÚ²»¶Ï¸Ä½ø
Python²¢·ÇÍêÓïÑÔ£¬µ«ÔÚ²»¶Ï¸Ä½øÖУ¬ÀýÈçÉϸöÔÂз¢²¼µÄ3.5.0°æ±¾Ôö¼ÓÁ˾ØÕó³Ë·¨µÄÔËËã·û£¬Ö§³ÖÒì²½ºÍµÈºò¾ä·¨µÄÐͬ³ÌÐò£¬ÒÔ¼°ÐµĿìËÙĿ¼±éÀúº¯ÊýµÈ¶ÔÓÚÐÂÈ˶øÑÔ£¬ÎÞÂÛѧϰʲô¼¼Êõ£¬¶¼ÒªÒÔ¹ÄÀøµÄ×Ë̬³öÏÖ¡£Ì«¶àÓÃнˮºÍÄã¸öÈËËù¿´µ½µÄÏÖ×´È¥ºâÁ¿Ò»Ãż¼Êõ£¬ÄÇÊÇǷȱÑÛ¹âµÄ¡£ÈκÎÒ»Ãż¼Êõ£¬Ò»µ©ÓÐÈËѧϰ£¬ËûÓпÉÄÜÖð½¥³ÉΪÕâ¸öÁìÓòµÄר¼Ò£¬¼´±ãÔÙÀÄÔÙûÓÐÈËÓõĿª·¢ÓïÑÔ¼¼Êõ£¬ËûÒ²ÓпÉÄܾÍÊÇÃ÷Èյĵì»ùÕß»òÕß´óʦ¡£
ѧϰpython ÊÇʱ´ú¶Ô¸øÓèÎÒÃǵĻú»á£¬×¥×¡Õâ¸ö»ú»áÄã¾Í»á³ÉΪʱ´úµÄÖ÷Ô×Õߣ¬Äã¾Í»á˳Ӧʱ´ú³±Á÷£¬¹ýÉÏ×Ô¼ºÏëÒªµÄÉú»î£¬ÊµÏÖÄãµÄ¸ßн¾ÍÒµÃΡ£
ÀÏÄк¢½ÌÓýÊÇÄãѧϰPythonµÄ¼ÑÑ¡Ôñ£¡ÀÏÄк¢½ÌÓýÊÇÒµ½ç½ÏÔ翪ÉèPython¿Î³ÌµÄÅàѵ»ú¹¹£¬ÍêÉƵĿγÌÌåϵ¡¢Ò»Á÷µÄ·þÎñÍŶӡ¢¸üÓÐÏñAlex¡¢ÎäsirÕâÑùÉîÊÜѧԱ°®´÷µÄ½²Ê¦ÍŶӣ¬ÔÙ¼ÓÉÏ¿ÆѧµÄ½Ìѧ·½·¨£¬ÀÏÄк¢½ÌÓýÅàÑøÁËÒ»´óÅú¸ßнIT¼¼ÊõÈ˲ţ¡Èç¹ûÄãÏë³ÉΪËûÃÇÖеÄÒ»Ô±£¬¾Í¸Ï¿ì¼ÓÈëÀÏÄк¢½ÌÓý°É£¡