{"id":2575,"date":"2024-09-26T21:42:46","date_gmt":"2024-09-26T12:42:46","guid":{"rendered":"https:\/\/secondlife.lol\/?p=2575"},"modified":"2024-09-30T21:23:45","modified_gmt":"2024-09-30T12:23:45","slug":"fix-python-hangul-broken-issue","status":"publish","type":"post","link":"https:\/\/secondlife.lol\/zh\/fix-python-hangul-broken-issue\/","title":{"rendered":"\u4fee\u590d Python \u7684\u97e9\u6587\u9519\u8bef\uff1a\u89e3\u51b3\u53ef\u89c6\u5316\u4e2d\u97e9\u6587\u6587\u672c\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u5728\u672c\u5e16\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528 <strong>\u5982\u4f55\u4fee\u590d Python \u7684\u97e9\u6587\u7834\u635f\u95ee\u9898<\/strong>\u8ba9\u6211\u4eec\u6765\u8c08\u8c08 <strong>Matplotlib<\/strong> \u5728\u4f7f\u7528\u5e93\u5c06\u6570\u636e\u53ef\u89c6\u5316\u65f6\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u97e9\u6587\u6587\u672c\u65e0\u6cd5\u6b63\u5e38\u663e\u793a\u7684\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u6807\u9898\u3001\u5750\u6807\u8f74\u6807\u7b7e\u548c\u56fe\u4f8b\u4e2d\uff0c\u8fd9\u4f1a\u4f7f\u60a8\u7684\u56fe\u8868\u96be\u4ee5\u9605\u8bfb\u3002<\/p>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title-wrap{color:var(--global-palette2, #2B6CB0);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{color:var(--global-palette2, #2B6CB0);font-size:28px;font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap .kb-table-of-content-list{color:var(--global-palette1, #3182CE);line-height:2em;font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap .kb-table-of-content-list .kb-table-of-contents__entry:hover{color:var(--global-palette6, #718096);}@media all and (max-width: 1024px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);}}@media all and (max-width: 1024px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{font-size:28px;}}@media all and (max-width: 767px){.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-content-wrap{border-top:3px solid var(--global-palette2, #2B6CB0);border-right:3px solid var(--global-palette2, #2B6CB0);border-bottom:3px solid var(--global-palette2, #2B6CB0);border-left:3px solid var(--global-palette2, #2B6CB0);}.kb-table-of-content-nav.kb-table-of-content-id83_5f28a6-34 .kb-table-of-contents-title{font-size:28px;}}<\/style>\n\n\n<p><a href=\"https:\/\/secondlife.lol\/zh\/stock-data-time-series-analysis-trend-forecasting\/\">\u4e0a\u4e00\u7bc7\u6587\u7ae0<\/a>\u4e0b\u9762\u7684\u4ee3\u7801\u4f1a\u5bfc\u81f4\u56fe\u8868\u4e2d\u7684\u97e9\u6587\u6587\u672c\u65ad\u5f00\uff0c\u6211\u5c06\u9010\u6b65\u89e3\u91ca\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u5bfc\u5165 yfinance \u4e3a yf\n\n\u4e0b\u8f7d # \u6807\u51c6\u666e\u5c14 500 \u6307\u6570\u6570\u636e\nsp500 = yf.download('^GSPC', start='2010-01-01', end='2023-01-01')\n\n\u63a2\u7d22 # \u6570\u636e\nprint(sp500.head())\nprint(sp500.describe())\n\nimport matplotlib.pyplot as plt\n\n\u53ef\u89c6\u5316 # \u6536\u76d8\u4ef7\u6570\u636e\nplt.figure(figsize=(10, 6))\nplt.plot(sp500['Close'], label='\u6807\u51c6\u666e\u5c14 500 \u6307\u6570\u6536\u76d8\u4ef7', color='blue')\nplt.title('S&amp;P 500 \u6307\u6570\u6536\u76d8\u4ef7\u65f6\u95f4\u5e8f\u5217')\nplt.xlabel('Date')\nplt.ylabel\uff08'\u6536\u76d8\u4ef7\uff08\u7f8e\u5143\uff09')\nplt.legend()\nplt.show()<\/code><\/pre>\n\n\n<style>.kb-image2575_e95d32-f2 .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image2575_e95d32-f2 img.kb-img, .kb-image2575_e95d32-f2 .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image2575_e95d32-f2\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"600\" height=\"376\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-24-600x376.jpg\" alt=\"\ud30c\uc774\uc36c \ud55c\uae00 \uae68\uc9d0 - S&amp;P 500 \ub370\uc774\ud130 \ub4dc\ub80c\ub4dc\" class=\"kb-img wp-image-2607\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-24-600x376.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-24-300x188.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-24-768x481.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-24.jpg 926w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u6211\u6709 Python \u97e9\u6587\u65ad\u53e5\u95ee\u9898\uff1f<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noopener\">Python<\/a>\u5728.NET \u4e2d\u8fdb\u884c\u53ef\u89c6\u5316\u65f6 <strong>Matplotlib<\/strong>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cMatplotlib \u4f1a\u4f7f\u7528\u7cfb\u7edf\u4e2d\u5b89\u88c5\u7684\u5b57\u4f53\uff0c\u4f46\u9ed8\u8ba4\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u5305\u62ec\u97e9\u6587\u5b57\u4f53\uff0c\u6216\u8005\u65e0\u6cd5\u6b63\u786e\u8bc6\u522b\u97e9\u6587\u5b57\u4f53\uff0c\u4ece\u800c\u5bfc\u81f4\u6587\u672c\u7834\u788e\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5\u97e9\u6587\u5b57\u4f53\u5e76\u542f\u7528 Matplotlib \u6765\u8bc6\u522b\u5b83\u4eec\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4fee\u590d Python \u56db\u5206\u4e94\u88c2\u7684\u5206\u6b65\u6307\u5357<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u5b89\u88c5\u97e9\u6587\u5b57\u4f53<\/h3>\n\n\n\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5\u5728 Python \u4e2d\u4f7f\u7528\u7684\u97e9\u6587\u5b57\u4f53\u3002\u5728 Windows \u4e0a\uff0c\u9ed8\u8ba4\u5b57\u4f53\u662f <strong>\u9633\u5149\u54e5\u7279\u5f0f<\/strong> \u5b83\u5305\u542b\u76f8\u540c\u7684\u97e9\u6587\u5b57\u4f53\uff0c\u4f46\u5728 Linux \u6216 macOS \u4e0a\u53ef\u80fd\u9700\u8981\u5355\u72ec\u5b89\u88c5\u3002<\/p>\n\n\n\n<p><strong>\u5229\u7eb3\u514b\u65af<\/strong>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5b89\u88c5\u97e9\u6587\u5b57\u4f53\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install fonts-nanum<\/code><\/pre>\n\n\n\n<p>\u8be5\u547d\u4ee4\u4f7f\u7528 <strong>\u5171\u4eab\u5b57\u4f53<\/strong>\u5b89\u88c5\u540e\uff0c\u5b57\u4f53\u5c31\u53ef\u4ee5\u5728 Matplotlib \u4e2d\u4f7f\u7528\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u5728 Matplotlib \u4e2d\u8bbe\u7f6e\u97e9\u6587\u5b57\u4f53<\/h3>\n\n\n\n<p>\u5b89\u88c5\u5b57\u4f53\u540e\uff0c\u6211\u4eec\u73b0\u5728\u9700\u8981\u5728 Matplotlib \u4e2d\u542f\u7528\u97e9\u6587\u5b57\u4f53\u3002 \u4e3a\u6b64\uff0c\u8bf7\u4f7f\u7528 <code>rc<\/code>(\u8fd0\u884c\u65f6\u914d\u7f6e\uff09\u6765\u6307\u5b9a\u4f7f\u7528\u54ea\u79cd\u5b57\u4f53\u3002 <code>matplotlib.rcParams<\/code>\u8bbe\u7f6e\u5b57\u4f53\u7684\u65b9\u6cd5\u5982\u4e0b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u5bfc\u5165 yfinance \u4e3a yf\n\n\u4e0b\u8f7d # \u6807\u51c6\u666e\u5c14 500 \u6307\u6570\u6570\u636e\nsp500 = yf.download('^GSPC', start='2010-01-01', end='2023-01-01')\n\n\u63a2\u7d22 # \u6570\u636e print(sp500.head())\nprint(sp500.describe())\n\n<strong>\u5c06 matplotlib.pyplot \u5bfc\u5165 plt\nfrom matplotlib import font_manager, rc\n\n\u5c06\u5b57\u4f53\u8bbe\u7f6e\u4e3a # Korean\uff08Nanum Gothic\uff09\nfont_path = 'C:\/Windows\/Fonts\/NanumGothic.ttf' # <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-theme-palette-1-color\">\u9700\u8981\u8bbe\u7f6e\u8def\u5f84<\/mark>\nfont_name = font_manager.FontProperties(fname=font_path).get_name()\nrc('font', family=font_name)<\/strong>\n\n\u53ef\u89c6\u5316 # \u6536\u76d8\u4ef7\u6570\u636e\nplt.figure(figsize=(10, 6))\nplt.plot(sp500['Close'], label='S&amp;P 500 Close', color='blue')\nplt.title('S&amp;P 500 \u6307\u6570\u6536\u76d8\u65f6\u95f4\u5e8f\u5217')\nplt.xlabel('Date')\nplt.ylabel\uff08'\u6536\u76d8\u4ef7\uff08\u7f8e\u5143\uff09')\nplt.legend()\nplt.show()<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u8fd9\u6bb5\u4ee3\u7801\uff0c\u60a8\u53ef\u4ee5\u6307\u5b9a\u4e00\u79cd\u97e9\u6587\u5b57\u4f53\uff0c\u5e76\u5c06\u5176\u5e94\u7528\u5230\u53ef\u89c6\u5316\u6548\u679c\u4e2d\u3002\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d <code>\u5b57\u4f53\u8def\u5f84<\/code>\u6307\u5b9a\u4e86\u5df2\u5b89\u88c5\u7684 division \u5b57\u4f53\u7684\u8def\u5f84\uff0c\u8be5\u8def\u5f84\u53ef\u80fd\u56e0\u7cfb\u7edf\u800c\u5f02\uff0c\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u8bbe\u7f6e\u3002 \u4e4b\u540e\uff0c\u8fd0\u884c\u4ee3\u7801\uff0c\u4f60\u4f1a\u53d1\u73b0 Python \u7684\u97e9\u6587\u7834\u635f\u95ee\u9898\u5df2\u5b8c\u5168\u89e3\u51b3\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n<style>.kb-image2575_8eab3b-b1 .kb-image-has-overlay:after{opacity:0.3;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;}.kb-image2575_8eab3b-b1 img.kb-img, .kb-image2575_8eab3b-b1 .kb-img img{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}<\/style>\n<div class=\"wp-block-kadence-image kb-image2575_8eab3b-b1\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"600\" height=\"370\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-25-600x370.jpg\" alt=\"\ud30c\uc774\uc36c \ud55c\uae00 \uae68\uc9d0 - S&amp;P 500 \ub370\uc774\ud130 \ub4dc\ub80c\ub4dc\" class=\"kb-img wp-image-2609\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-25-600x370.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-25-300x185.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-25-768x473.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/image-25.jpg 909w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u91cd\u7f6e\u5b57\u4f53\u7f13\u5b58<\/h3>\n\n\n\n<p>\u6709\u65f6\uff0c\u5373\u4f7f\u8bbe\u7f6e\u4e86\u5b57\u4f53\uff0c\u97e9\u6587\u5b57\u7b26\u4ecd\u7136\u662f\u8e69\u811a\u7684\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528 <strong>Matplotlib \u5b57\u4f53\u7f13\u5b58<\/strong>\u4f1a\u6709\u6240\u5e2e\u52a9\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u521d\u59cb\u5316\u7f13\u5b58\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm ~\/.cache\/matplotlib -rf<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u6e05\u9664\u7f13\u5b58\u5e76\u91cd\u65b0\u751f\u6210\u56fe\u5f62\uff0c\u5b57\u4f53\u5c31\u4f1a\u6b63\u786e\u5e94\u7528\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u91cd\u65b0\u7ed8\u5236\u56fe\u8868<\/h3>\n\n\n\n<p>\u73b0\u5728\uff0c\u97e9\u6587\u5b57\u4f53\u5df2\u8bbe\u7f6e\u5b8c\u6bd5\uff0c\u8ba9\u6211\u4eec\u518d\u6b21\u5c1d\u8bd5\u7ed8\u5236\u56fe\u8868\u3002 \u60a8\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u4ee3\u7801\u9a8c\u8bc1\u97e9\u6587\u6587\u672c\u662f\u5426\u6b63\u786e\u663e\u793a\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import matplotlib.pyplot as plt\n\n\u53ef\u89c6\u5316 # \u6536\u76d8\u4ef7\u6570\u636e\nplt.figure(figsize=(10, 6))\nplt.plot(sp500['Close'], label='\u6807\u51c6\u666e\u5c14 500 \u6307\u6570\u6536\u76d8\u4ef7', color='blue')\nplt.title('S&amp;P 500 \u6307\u6570\u6536\u76d8\u4ef7\u65f6\u95f4\u5e8f\u5217')\nplt.xlabel('Date')\nplt.ylabel\uff08'\u6536\u76d8\u4ef7\uff08\u7f8e\u5143\uff09')\nplt.legend()\nplt.show()<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u6b64\u4ee3\u7801\u540e\uff0c\u56fe\u8868\u7684\u6807\u9898\u3001\u5750\u6807\u8f74\u6807\u7b7e\u548c\u56fe\u4f8b\u5c06\u4ee5\u97e9\u6587\u6b63\u786e\u663e\u793a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6e05\u7406\uff1a\u4fee\u590d\u635f\u574f\u7684 Python \u97e9\u6587<\/h2>\n\n\n\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5982\u4f55\u4fee\u590d Python \u7684\u97e9\u6587\u7834\u635f\u95ee\u9898\u3002\u5173\u952e\u662f\u5b89\u88c5\u97e9\u6587\u5b57\u4f53\u5e76\u5728 Matplotlib \u4e2d\u8fdb\u884c\u8bbe\u7f6e\u3002\u5f53\u97e9\u6587\u6587\u672c\u65e0\u6cd5\u5728\u53ef\u89c6\u5316\u4e2d\u6b63\u5e38\u663e\u793a\u65f6\uff0c\u8fd9\u5c06\u5e2e\u52a9\u60a8\u521b\u5efa\u66f4\u53ef\u8bfb\u3001\u66f4\u6613\u61c2\u7684\u56fe\u8868\u3002\u9664\u4e86 Python \u97e9\u6587\u7834\u635f\u95ee\u9898\uff0c\u6211\u4eec\u8fd8\u7ecf\u5e38\u9047\u5230\u5176\u4ed6\u95ee\u9898\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f NAN \u95ee\u9898\uff0c\u60a8\u53ef\u80fd\u60f3\u77e5\u9053\u5b83\u662f\u4ec0\u4e48\uff1f <a href=\"https:\/\/secondlife.lol\/zh\/fixing-nan-in-python-arima-predictions\/\" data-type=\"post\" data-id=\"2561\">Python \u7eb3\u7c73\u6e05\u9664\uff1a\u89e3\u51b3 ARIMA \u6a21\u578b\u9884\u6d4b\u4e2d\u7684\u7eb3\u7c73\u9897\u7c92\u95ee\u9898<\/a> \u770b\u770b\u8fd9\u7bc7\u6587\u7ae0\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"># \u672f\u8bed\u8868<\/h3>\n\n\n\n<h5 class=\"wp-block-heading\">1. <strong>Matplotlib<\/strong><\/h5>\n\n\n\n<p>Matplotlib \u662f\u4e00\u4e2a Python \u6570\u636e\u53ef\u89c6\u5316\u5e93\u3002\u5b83\u53ef\u4ee5\u7ed8\u5236\u591a\u79cd\u4e0d\u540c\u7684\u56fe\u5f62\u548c\u56fe\u8868\uff0c\u901a\u5e38\u7528\u4e8e\u76f4\u89c2\u5730\u8868\u793a\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u6216\u7edf\u8ba1\u6570\u636e\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">2. <strong>\u5357\uff08\u4e0d\u662f\u6570\u5b57\uff09<\/strong><\/h5>\n\n\n\n<p>nan \u4ee3\u8868 \"Not a Number\uff08\u975e\u6570\u5b57\uff09\"\uff0c\u662f\u6570\u5b57\u8ba1\u7b97\u7ed3\u679c\u51fa\u73b0\u9519\u8bef\u6216\u6570\u636e\u7f3a\u5931\u65f6\u7684\u6570\u503c\u3002\u5b83\u53ef\u4ee5\u663e\u793a\u53ef\u89c6\u5316\u6216\u6570\u636e\u5206\u6790\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">3. <strong>rc\uff08\u8fd0\u884c\u65f6\u914d\u7f6e\uff09<\/strong><\/h5>\n\n\n\n<p>Matplotlib \u7684 <code>rc<\/code>\u662f \"\u8fd0\u884c\u65f6\u914d\u7f6e \"\u7684\u7b80\u79f0\uff0c\u662f\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u7528\u4e8e\u66f4\u6539\u56fe\u8868\u7684\u5168\u5c40\u8bbe\u7f6e\u3002\u60a8\u53ef\u4ee5\u8c03\u6574\u56fe\u8868\u7684\u6574\u4f53\u98ce\u683c\uff0c\u5305\u62ec\u5b57\u4f53\u3001\u989c\u8272\u3001\u7ebf\u6761\u6837\u5f0f\u7b49\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">4. <strong>\u5b57\u4f53\u7f13\u5b58<\/strong><\/h5>\n\n\n\n<p>\u5b57\u4f53\u7f13\u5b58\u662f\u4e00\u4e2a\u4e34\u65f6\u5b58\u50a8\u533a\u57df\uff0c\u7528\u4e8e\u5b58\u50a8\u5b57\u4f53\u4fe1\u606f\uff0c\u4ee5\u4fbf\u5feb\u901f\u8bbf\u95ee\u3002\u5728\u5b57\u4f53\u7f13\u5b58\u4e0d\u6b63\u786e\u7684\u60c5\u51b5\u4e0b\u7ed8\u5236\u56fe\u5f62\u4f1a\u5bfc\u81f4\u5b57\u4f53\u5e94\u7528\u9519\u8bef\uff0c\u56e0\u6b64\u5728\u51fa\u73b0\u95ee\u9898\u65f6\u5220\u9664\u5e76\u91cd\u65b0\u521b\u5efa\u7f13\u5b58\u662f\u975e\u5e38\u6709\u7528\u7684\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 \ud30c\uc774\uc36c \ud55c\uae00 \uae68\uc9d0 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4&#8230;.<\/p>","protected":false},"author":3,"featured_media":2628,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[3],"tags":[162,259,172,33,258,257],"class_list":["post-2575","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-coding","tag-matplotlib","tag-259","tag-172","tag-33","tag-258","tag-257"],"taxonomy_info":{"category":[{"value":3,"label":"\ud30c\uc774\uc36c(Python)"}],"post_tag":[{"value":162,"label":"Matplotlib"},{"value":259,"label":"\ub098\ub214 \uace0\ub515"},{"value":172,"label":"\uc2dc\uac01\ud654"},{"value":33,"label":"\ud30c\uc774\uc36c"},{"value":258,"label":"\ud3f0\ud2b8 \uc124\uc815"},{"value":257,"label":"\ud55c\uae00 \uae68\uc9d0"}]},"featured_image_src_large":["https:\/\/secondlife.lol\/wp-content\/uploads\/2024\/09\/\ud30c\uc774\uc36c-\ub370\uc774\ud130\ubd84\uc11d-\uc608\uc81c-\ud3ec\uc2a4\ud2b8-\uc378\ub124\uc77c-1-600x600.jpg",600,600,true],"author_info":{"display_name":"TERE","author_link":"https:\/\/secondlife.lol\/zh\/author\/tere\/"},"comment_info":0,"category_info":[{"term_id":3,"name":"\ud30c\uc774\uc36c(Python)","slug":"python-coding","term_group":0,"term_taxonomy_id":3,"taxonomy":"category","description":"","parent":20,"count":116,"filter":"raw","cat_ID":3,"category_count":116,"category_description":"","cat_name":"\ud30c\uc774\uc36c(Python)","category_nicename":"python-coding","category_parent":20}],"tag_info":[{"term_id":162,"name":"Matplotlib","slug":"matplotlib","term_group":0,"term_taxonomy_id":162,"taxonomy":"post_tag","description":"","parent":0,"count":19,"filter":"raw"},{"term_id":259,"name":"\ub098\ub214 \uace0\ub515","slug":"%eb%82%98%eb%88%94-%ea%b3%a0%eb%94%95","term_group":0,"term_taxonomy_id":259,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":172,"name":"\uc2dc\uac01\ud654","slug":"%ec%8b%9c%ea%b0%81%ed%99%94","term_group":0,"term_taxonomy_id":172,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":33,"name":"\ud30c\uc774\uc36c","slug":"%ed%8c%8c%ec%9d%b4%ec%8d%ac","term_group":0,"term_taxonomy_id":33,"taxonomy":"post_tag","description":"","parent":0,"count":30,"filter":"raw"},{"term_id":258,"name":"\ud3f0\ud2b8 \uc124\uc815","slug":"%ed%8f%b0%ed%8a%b8-%ec%84%a4%ec%a0%95","term_group":0,"term_taxonomy_id":258,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":257,"name":"\ud55c\uae00 \uae68\uc9d0","slug":"%ed%95%9c%ea%b8%80-%ea%b9%a8%ec%a7%90","term_group":0,"term_taxonomy_id":257,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/posts\/2575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/comments?post=2575"}],"version-history":[{"count":10,"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/posts\/2575\/revisions"}],"predecessor-version":[{"id":2755,"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/posts\/2575\/revisions\/2755"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/media\/2628"}],"wp:attachment":[{"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/media?parent=2575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/categories?post=2575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secondlife.lol\/zh\/wp-json\/wp\/v2\/tags?post=2575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}