{"id":999791,"date":"2024-12-27T09:44:26","date_gmt":"2024-12-27T01:44:26","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/999791.html"},"modified":"2024-12-27T09:44:28","modified_gmt":"2024-12-27T01:44:28","slug":"anaconda%e5%a6%82%e4%bd%95%e8%b0%83%e8%af%95python%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/999791.html","title":{"rendered":"anaconda\u5982\u4f55\u8c03\u8bd5python\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074647\/a85b3691-3b5a-489e-962e-a9e9baa622be.webp\" alt=\"anaconda\u5982\u4f55\u8c03\u8bd5python\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>Anaconda\u8c03\u8bd5Python\u7a0b\u5e8f\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u547d\u4ee4\u884c\u8c03\u8bd5\u5de5\u5177\u548c\u65e5\u5fd7\u8bb0\u5f55\u5de5\u5177\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Anaconda\u81ea\u5e26\u7684Spyder IDE\u662f\u6700\u5e38\u89c1\u548c\u65b9\u4fbf\u7684\u65b9\u6cd5\uff0c\u5b83\u63d0\u4f9b\u4e86\u65ad\u70b9\u8bbe\u7f6e\u3001\u53d8\u91cf\u68c0\u67e5\u548c\u9010\u6b65\u6267\u884c\u7b49\u529f\u80fd\u3002<\/strong><\/p>\n<\/p>\n<p><p>Anaconda\u662f\u4e00\u4e2a\u5f00\u6e90\u7684Python\u548cR\u8bed\u8a00\u7684\u53d1\u884c\u7248\uff0c\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u9886\u57df\u3002\u5b83\u5305\u542b\u4e86\u8bb8\u591a\u6709\u7528\u7684\u5de5\u5177\u548c\u5e93\uff0c\u53ef\u4ee5\u6781\u5927\u5730\u7b80\u5316\u5f00\u53d1\u548c\u8c03\u8bd5\u8fc7\u7a0b\u3002\u5bf9\u4e8ePython\u7a0b\u5e8f\u7684\u8c03\u8bd5\uff0cAnaconda\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\u6709\u6548\u7684\u8c03\u8bd5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528SPYDER IDE\u8fdb\u884c\u8c03\u8bd5<\/h3>\n<\/p>\n<p><p>Spyder\u662fAnaconda\u81ea\u5e26\u7684\u4e00\u4e2a\u79d1\u5b66\u8ba1\u7b97IDE\uff0c\u5177\u6709\u5f3a\u5927\u7684\u8c03\u8bd5\u529f\u80fd\uff0c\u975e\u5e38\u9002\u5408Python\u7a0b\u5e8f\u7684\u5f00\u53d1\u548c\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u548c\u542f\u52a8Spyder<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5Anaconda\u540e\uff0cSpyder\u901a\u5e38\u4f1a\u81ea\u52a8\u5b89\u88c5\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda install spyder<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u542f\u52a8Spyder\u53ef\u4ee5\u901a\u8fc7Anaconda Navigator\u754c\u9762\u8fdb\u884c\uff0c\u4e5f\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>spyder<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2. \u8bbe\u7f6e\u65ad\u70b9<\/h4>\n<\/p>\n<p><p>\u5728Spyder\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u884c\u53f7\u5de6\u4fa7\u5355\u51fb\u6765\u8bbe\u7f6e\u65ad\u70b9\u3002\u65ad\u70b9\u662f\u7a0b\u5e8f\u6682\u505c\u6267\u884c\u7684\u5730\u65b9\uff0c\u5141\u8bb8\u60a8\u68c0\u67e5\u7a0b\u5e8f\u7684\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><h4>3. \u9010\u6b65\u6267\u884c<\/h4>\n<\/p>\n<p><p>\u8bbe\u7f6e\u65ad\u70b9\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u680f\u4e0a\u7684\u8c03\u8bd5\u6309\u94ae\u6765\u9010\u6b65\u6267\u884c\u4ee3\u7801\u3002\u8fd9\u5305\u62ec\u8fdb\u5165\u51fd\u6570\uff08Step Into\uff09\u3001\u8df3\u51fa\u51fd\u6570\uff08Step Out\uff09\u3001\u9010\u884c\u6267\u884c\uff08Step Over\uff09\u7b49\u3002<\/p>\n<\/p>\n<p><h4>4. \u68c0\u67e5\u53d8\u91cf<\/h4>\n<\/p>\n<p><p>Spyder\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53d8\u91cf<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a>\u5668\uff0c\u53ef\u4ee5\u5b9e\u65f6\u67e5\u770b\u548c\u4fee\u6539\u7a0b\u5e8f\u4e2d\u7684\u53d8\u91cf\u3002\u8fd9\u5bf9\u4e8e\u7406\u89e3\u7a0b\u5e8f\u7684\u72b6\u6001\u548c\u8c03\u8bd5\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528PYTHON\u547d\u4ee4\u884c\u8c03\u8bd5\u5de5\u5177\uff08PDB\uff09<\/h3>\n<\/p>\n<p><p>Python\u81ea\u5e26\u7684PDB\uff08Python Debugger\uff09\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u5728Anaconda\u73af\u5883\u4e2d\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h4>1. \u542f\u52a8PDB<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165PDB\u6a21\u5757\u5e76\u8c03\u7528<code>set_trace()<\/code>\u51fd\u6570\u6765\u542f\u52a8\u8c03\u8bd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pdb; pdb.set_trace()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7a0b\u5e8f\u5728\u8fd0\u884c\u5230\u8fd9\u4e00\u884c\u65f6\u4f1a\u6682\u505c\uff0c\u5e76\u8fdb\u5165PDB\u8c03\u8bd5\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528PDB\u547d\u4ee4<\/h4>\n<\/p>\n<p><p>\u5728PDB\u6a21\u5f0f\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u547d\u4ee4\u6765\u63a7\u5236\u7a0b\u5e8f\u7684\u6267\u884c\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>n<\/code>\uff08next\uff09\uff1a\u6267\u884c\u4e0b\u4e00\u884c\u3002<\/li>\n<li><code>c<\/code>\uff08continue\uff09\uff1a\u7ee7\u7eed\u6267\u884c\uff0c\u76f4\u5230\u4e0b\u4e00\u4e2a\u65ad\u70b9\u3002<\/li>\n<li><code>l<\/code>\uff08list\uff09\uff1a\u67e5\u770b\u5f53\u524d\u4ee3\u7801\u3002<\/li>\n<li><code>p<\/code>\uff08print\uff09\uff1a\u6253\u5370\u53d8\u91cf\u7684\u503c\u3002<\/li>\n<\/ul>\n<p><h4>3. \u9000\u51faPDB<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>q<\/code>\uff08quit\uff09\u547d\u4ee4\u53ef\u4ee5\u9000\u51faPDB\u8c03\u8bd5\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528LOGGING\u8fdb\u884c\u8c03\u8bd5<\/h3>\n<\/p>\n<p><p>\u65e5\u5fd7\u8bb0\u5f55\u662f\u4e00\u79cd\u6709\u6548\u7684\u8c03\u8bd5\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u8bb0\u5f55\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u4fe1\u606f\uff0c\u4ee5\u4fbf\u5728\u7a0b\u5e8f\u51fa\u73b0\u95ee\u9898\u65f6\u8fdb\u884c\u5206\u6790\u3002<\/p>\n<\/p>\n<p><h4>1. \u914d\u7f6eLogging<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5bfc\u5165<code>logging<\/code>\u6a21\u5757\u5e76\u8fdb\u884c\u914d\u7f6e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import logging<\/p>\n<p>logging.basicConfig(level=logging.DEBUG, format=&#39;%(asctime)s - %(levelname)s - %(message)s&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6dfb\u52a0\u65e5\u5fd7\u4fe1\u606f<\/h4>\n<\/p>\n<p><p>\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0\u65e5\u5fd7\u8bb0\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">logging.debug(&#39;This is a debug message&#39;)<\/p>\n<p>logging.info(&#39;This is an info message&#39;)<\/p>\n<p>logging.warning(&#39;This is a warning message&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5206\u6790\u65e5\u5fd7<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u67e5\u770b\u751f\u6210\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u53ef\u4ee5\u5206\u6790\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u548c\u53ef\u80fd\u5b58\u5728\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528JUPYTER NOTEBOOK\u8fdb\u884c\u8c03\u8bd5<\/h3>\n<\/p>\n<p><p>Jupyter Notebook\u662fAnaconda\u63d0\u4f9b\u7684\u53e6\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u9002\u5408\u4e8e\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u548c\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u9b54\u6cd5\u547d\u4ee4\u8fdb\u884c\u8c03\u8bd5<\/h4>\n<\/p>\n<p><p>Jupyter Notebook\u652f\u6301\u4f7f\u7528\u9b54\u6cd5\u547d\u4ee4\u8fdb\u884c\u8c03\u8bd5\uff0c\u6bd4\u5982<code>%debug<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">%debug<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5f53\u7a0b\u5e8f\u629b\u51fa\u5f02\u5e38\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u8be5\u547d\u4ee4\u8fdb\u5165\u8c03\u8bd5\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>2. \u9010\u6b65\u6267\u884c\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>Jupyter Notebook\u7684\u5355\u5143\u683c\u6267\u884c\u7279\u6027\u5141\u8bb8\u5f00\u53d1\u8005\u9010\u6b65\u7f16\u5199\u548c\u6267\u884c\u4ee3\u7801\uff0c\u975e\u5e38\u9002\u5408\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<p><h4>3. \u7ed3\u5408\u53ef\u89c6\u5316\u5de5\u5177<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u7ed3\u5408Matplotlib\u7b49\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u5b9e\u65f6\u67e5\u770b\u6570\u636e\u7684\u53d8\u5316\u548c\u8d8b\u52bf\uff0c\u5e2e\u52a9\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528PYCHARM IDE\u8fdb\u884c\u8c03\u8bd5<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u4e0d\u662fAnaconda\u81ea\u5e26\u7684\u5de5\u5177\uff0c\u4f46PyCharm\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684Python IDE\uff0c\u652f\u6301Anaconda\u73af\u5883\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u8c03\u8bd5\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1. \u914d\u7f6eAnaconda\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5728PyCharm\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u6765\u4f7f\u7528Anaconda\u7684\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>2. \u8bbe\u7f6e\u65ad\u70b9\u548c\u6761\u4ef6\u65ad\u70b9<\/h4>\n<\/p>\n<p><p>\u4e0eSpyder\u7c7b\u4f3c\uff0cPyCharm\u4e5f\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u70b9\u51fb\u884c\u53f7\u6765\u8bbe\u7f6e\u65ad\u70b9\uff0c\u8fd8\u652f\u6301\u6761\u4ef6\u65ad\u70b9\uff0c\u5373\u53ea\u6709\u5f53\u67d0\u4e2a\u6761\u4ef6\u6ee1\u8db3\u65f6\u624d\u6682\u505c\u6267\u884c\u3002<\/p>\n<\/p>\n<p><h4>3. \u4f7f\u7528\u8c03\u8bd5\u63a7\u5236\u53f0<\/h4>\n<\/p>\n<p><p>PyCharm\u63d0\u4f9b\u4e86\u4e00\u4e2a\u8c03\u8bd5\u63a7\u5236\u53f0\uff0c\u5141\u8bb8\u7528\u6237\u5728\u8c03\u8bd5\u65f6\u6267\u884c\u4efb\u610f\u7684Python\u4ee3\u7801\uff0c\u8fd9\u5bf9\u4e8e\u68c0\u67e5\u548c\u4fee\u6539\u7a0b\u5e8f\u72b6\u6001\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h3>\n<\/p>\n<p><p>\u5728\u8c03\u8bd5Python\u7a0b\u5e8f\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002Spyder\u3001PDB\u3001Logging\u3001Jupyter Notebook\u548cPyCharm\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u548c\u4e60\u60ef\u8fdb\u884c\u9009\u62e9\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u8c03\u8bd5\u7684\u6700\u4f73\u5b9e\u8df5\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u4fdd\u6301\u4ee3\u7801\u7b80\u6d01<\/strong>\uff1a\u5c3d\u91cf\u7f16\u5199\u7b80\u6d01\u3001\u6613\u8bfb\u7684\u4ee3\u7801\uff0c\u8fd9\u6709\u52a9\u4e8e\u5728\u8c03\u8bd5\u65f6\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u3002<\/li>\n<li><strong>\u4f7f\u7528\u7248\u672c\u63a7\u5236<\/strong>\uff1a\u4f7f\u7528Git\u7b49\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u53ef\u4ee5\u5728\u8c03\u8bd5\u65f6\u65b9\u4fbf\u5730\u56de\u6eda\u4ee3\u7801\u3002<\/li>\n<li><strong>\u7f16\u5199\u5355\u5143\u6d4b\u8bd5<\/strong>\uff1a\u901a\u8fc7\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u5728\u65e9\u671f\u53d1\u73b0\u548c\u4fee\u590d\u7a0b\u5e8f\u4e2d\u7684\u9519\u8bef\u3002<\/li>\n<li><strong>\u4f18\u5316\u65e5\u5fd7\u8bb0\u5f55<\/strong>\uff1a\u5408\u7406\u4f7f\u7528\u65e5\u5fd7\u8bb0\u5f55\uff0c\u907f\u514d\u8fc7\u591a\u7684\u4fe1\u606f\u5e72\u6270\u8c03\u8bd5\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u5408\u7406\u5730\u4f7f\u7528Anaconda\u53ca\u5176\u5de5\u5177\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u8c03\u8bd5Python\u7a0b\u5e8f\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Anaconda\u4e2d\u8bbe\u7f6e\u8c03\u8bd5\u73af\u5883\uff1f<\/strong><br \/>\u5728Anaconda\u4e2d\u8c03\u8bd5Python\u7a0b\u5e8f\u7684\u7b2c\u4e00\u6b65\u662f\u786e\u4fdd\u4f60\u5df2\u5b89\u88c5Anaconda\u548c\u6240\u9700\u7684IDE\uff0c\u5982Jupyter Notebook\u6216Spyder\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7Anaconda Navigator\u8f7b\u677e\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u73af\u5883\u5e76\u5b89\u88c5\u8c03\u8bd5\u5de5\u5177\uff0c\u5982<code>pdb<\/code>\u6216<code>ipdb<\/code>\u3002\u5728Spyder\u4e2d\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5176\u5185\u7f6e\u7684\u8c03\u8bd5\u529f\u80fd\uff0c\u8bbe\u7f6e\u65ad\u70b9\u5e76\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u89c2\u5bdf\u53d8\u91cf\u7684\u53d8\u5316\u3002<\/p>\n<p><strong>Anaconda\u4e2d\u6709\u54ea\u4e9b\u8c03\u8bd5\u5de5\u5177\u53ef\u4f9b\u9009\u62e9\uff1f<\/strong><br \/>\u5728Anaconda\u4e2d\uff0c\u6709\u591a\u79cd\u8c03\u8bd5\u5de5\u5177\u53ef\u4f9b\u9009\u62e9\u3002\u4f8b\u5982\uff0c<code>pdb<\/code>\u662fPython\u7684\u5185\u7f6e\u8c03\u8bd5\u5668\uff0c\u9002\u5408\u547d\u4ee4\u884c\u8c03\u8bd5\uff1b\u800c<code>ipdb<\/code>\u63d0\u4f9b\u4e86\u66f4\u53cb\u597d\u7684\u547d\u4ee4\u884c\u754c\u9762\u3002\u6b64\u5916\uff0cSpyder IDE\u6709\u5f3a\u5927\u7684\u8c03\u8bd5\u529f\u80fd\uff0c\u652f\u6301\u53ef\u89c6\u5316\u8c03\u8bd5\u548c\u53d8\u91cf\u67e5\u770b\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528Visual Studio Code\u7b49\u5176\u4ed6IDE\uff0c\u914d\u5408Anaconda\u73af\u5883\uff0c\u6765\u8fdb\u884c\u66f4\u590d\u6742\u7684\u8c03\u8bd5\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Anaconda\u4e2d\u4f7f\u7528Jupyter Notebook\u8fdb\u884c\u8c03\u8bd5\uff1f<\/strong><br \/>\u5728Jupyter Notebook\u4e2d\u8c03\u8bd5Python\u4ee3\u7801\uff0c\u53ef\u4ee5\u5229\u7528\u9b54\u6cd5\u547d\u4ee4<code>%pdb on<\/code>\u6765\u542f\u7528\u8c03\u8bd5\u5668\u3002\u5f53\u7a0b\u5e8f\u629b\u51fa\u5f02\u5e38\u65f6\uff0c\u8c03\u8bd5\u5668\u5c06\u81ea\u52a8\u542f\u52a8\uff0c\u8ba9\u4f60\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u7684\u6267\u884c\u72b6\u6001\u3002\u5728\u5355\u5143\u683c\u4e2d\u63d2\u5165\u4ee3\u7801\u65f6\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>breakpoint()<\/code>\u51fd\u6570\u6765\u8bbe\u7f6e\u65ad\u70b9\uff0c\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u89c2\u5bdf\u53d8\u91cf\u7684\u53d8\u5316\u60c5\u51b5\uff0c\u4f7f\u5f97\u8c03\u8bd5\u8fc7\u7a0b\u66f4\u52a0\u76f4\u89c2\u548c\u9ad8\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Anaconda\u8c03\u8bd5Python\u7a0b\u5e8f\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u547d\u4ee4\u884c\u8c03\u8bd5\u5de5\u5177\u548c\u65e5\u5fd7\u8bb0\u5f55\u5de5\u5177\u3002\u5176\u4e2d\uff0c [&hellip;]","protected":false},"author":3,"featured_media":999797,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999791"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=999791"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999791\/revisions"}],"predecessor-version":[{"id":999798,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999791\/revisions\/999798"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/999797"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=999791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=999791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=999791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}