ÔÚLinuxϵͳÉÏʹÓÃPyCharm¾ÙÐÐÊý¾ÝÆÊÎöµÄÉèÖÃÒªÁì
ÔÚlinuxϵͳÉÏʹÓÃpycharm¾ÙÐÐÊý¾ÝÆÊÎöµÄÉèÖÃÒªÁì
PyCharmÊÇÒ»¿î¹¦Ð§Ç¿Ê¢µÄPython¼¯³É¿ª·¢ÇéÐÎ(IDE)£¬¿ÉÒÔ×ÊÖú¿ª·¢Ö°Ô±¸ü¸ßЧµØ¾ÙÐÐPythonÏîÄ¿¿ª·¢ºÍÊý¾ÝÆÊÎö¡£±¾ÎĽ«ÏÈÈÝÔÚLinuxϵͳÉÏÉèÖÃPyCharm¾ÙÐÐÊý¾ÝÆÊÎöµÄÒªÁ죬²¢¸½ÉÏ´úÂëʾÀý¡£
°ì·¨Ò»£º×°ÖÃPyCharm
Ê×ÏÈ£¬ÐèÒªÏÂÔز¢×°ÖÃPyCharm¡£¿ÉÒÔÔÚJetBrainsµÄ¹Ù·½ÍøÕ¾ÉÏÏÂÔØÊÊÓÃÓÚLinuxϵͳµÄPyCharm×°Öðü¡£ÏÂÔØÍê³Éºó£¬Æ¾Ö¤×°ÖðüµÄÌáÐѾÙÐÐ×°Öü´¿É¡£
°ì·¨¶þ£º×°ÖÃPythonÚ¹ÊÍÆ÷
ÔÚÉèÖÃPyCharm֮ǰ£¬ÐèÒªÏÈ×°ÖÃPythonÚ¹ÊÍÆ÷¡£ÈôÊÇÒѾװÖÃÁËPythonÚ¹ÊÍÆ÷£¬Ôò¿ÉÒÔÌø¹ý´Ë°ì·¨¡£¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁî×°ÖÃPythonÚ¹ÊÍÆ÷£º
sudo apt-get update sudo apt-get install python3
µÇ¼ºó¸´ÖÆ
°ì·¨Èý£º½¨ÉèPyCharmÏîÄ¿
·¿ªPyCharm£¬µã»÷”Create New Project”°´Å¥½¨ÉèÒ»¸öеÄÏîÄ¿¡£Ñ¡ÔñÒ»¸öºÏÊʵÄλÖò¢ÃüÃûÏîÄ¿¡£ÔÚ”Project Interpreter”Ñ¡ÏîÖУ¬Ñ¡Ôñ¸Õ¸Õ×°ÖõÄPythonÚ¹ÊÍÆ÷¡£
°ì·¨ËÄ£º×°ÖÃËùÐèµÄPython¿â
ÔÚÊý¾ÝÆÊÎöÀú³ÌÖУ¬Í¨³£ÐèҪʹÓÃһЩµÚÈý·½µÄPython¿â£¬Èçpandas¡¢matplotlibµÈ¡£¿ÉÒÔͨ¹ýÒÔÏÂÏÂÁî×°ÖÃÕâЩ¿â£º
pip install pandas pip install matplotlib
µÇ¼ºó¸´ÖÆ
°ì·¨Î壺µ¼ÈëÊý¾ÝÆÊÎö´úÂëʾÀý
µ¼ÈëÊý¾ÝÆÊÎö´úÂëʾÀý£¬¿ÉÒÔ×ÊÖúÎÒÃǸüºÃµØÃ÷È·ÔõÑùʹÓÃPyCharm¾ÙÐÐÊý¾ÝÆÊÎö¡£ÒÔÏÂÊÇÒ»¸ö¼òÆӵĴúÂëʾÀý£¬ÓÃÓÚÅÌËãÒ»×éËæ»úÊýµÄƽ¾ùÖµ£º
import numpy as np # ÌìÉúËæ»úÊý data = np.random.randint(0, 100, 1000) # ÅÌËãƽ¾ùÖµ mean = np.mean(data) # ´òӡЧ¹û print("ƽ¾ùÖµ£º", mean)
µÇ¼ºó¸´ÖÆ
°ì·¨Áù£ºÔËÐдúÂë
ÔÚPyCharmÖУ¬¿ÉÒÔÑ¡ÕªÒªÔËÐеĴúÂëÎļþ£¬²¢µã»÷ÔËÐа´Å¥»òʹÓÿì½Ý¼üÀ´ÔËÐдúÂë¡£ÔÚ´úÂëÔËÐÐÍê³Éºó£¬¿ÉÒÔÔÚPyCharmµÄÖն˴°¿ÚÖп´µ½Ð§¹û¡£
×ܽ᣺
ͨ¹ýÒÔÉÏ°ì·¨£¬ÎÒÃÇ¿ÉÒÔÔÚLinuxϵͳÉÏÀÖ³ÉÉèÖÃPyCharm¾ÙÐÐÊý¾ÝÆÊÎö¡£PyCharmÌṩÁ˸»ºñµÄ¹¦Ð§ºÍÒ×ÓÚʹÓõĽçÃ棬×ÊÖúÎÒÃǸü¸ßЧµØ¾ÙÐÐÊý¾ÝÆÊÎöÊÂÇé¡£ÔÚÏÖʵӦÓÃÖУ¬ÎÒÃÇ¿ÉÒÔƾ֤ÐèҪװÖÃÆäËûËùÐèµÄPython¿â£¬²¢±àдÏìÓ¦µÄ´úÂë¾ÙÐÐÊý¾ÝÆÊÎö¡£
Ï£Íû±¾ÎĵÄÏÈÈݺÍʾÀý´úÂëÄܹ»×ÊÖú¶ÁÕ߸üºÃµØʹÓÃPyCharm¾ÙÐÐÊý¾ÝÆÊÎö£¬²¢ÔÚÊÂÇéÖÐÈ¡µÃ¸üºÃµÄЧ¹û¡£
ÒÔÉϾÍÊÇÔÚLinuxϵͳÉÏʹÓÃPyCharm¾ÙÐÐÊý¾ÝÆÊÎöµÄÉèÖÃÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡