{"id":929269,"date":"2024-12-26T16:52:13","date_gmt":"2024-12-26T08:52:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/929269.html"},"modified":"2024-12-26T16:52:16","modified_gmt":"2024-12-26T08:52:16","slug":"python%e5%a6%82%e4%bd%95%e7%94%bb%e7%ab%96%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/929269.html","title":{"rendered":"python\u5982\u4f55\u753b\u7ad6\u7ebf"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064536\/74ca8370-d236-4ea9-add5-d293a94736bf.webp\" alt=\"python\u5982\u4f55\u753b\u7ad6\u7ebf\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u7ed8\u5236\u7ad6\u7ebf\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c<strong>\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Tkinter\u8fdb\u884cGUI\u7ed8\u56fe\u3001\u4ee5\u53ca\u4f7f\u7528PIL\u8fdb\u884c\u56fe\u50cf\u5904\u7406<\/strong>\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Matplotlib\u7ed8\u5236\u7ad6\u7ebf\uff0c\u5e76\u63d0\u4f9b\u5176\u4ed6\u65b9\u6cd5\u7684\u7b80\u8981\u4ecb\u7ecd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Matplotlib\u7ed8\u5236\u7ad6\u7ebf<\/h3>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u529f\u80fd\u5f3a\u5927\u76842D\u7ed8\u56fe\u5e93\uff0c\u5e7f\u6cdb\u7528\u4e8e\u751f\u6210\u56fe\u8868\u548c\u53ef\u89c6\u5316\u6570\u636e\u3002\u8981\u4f7f\u7528Matplotlib\u7ed8\u5236\u7ad6\u7ebf\uff0c\u53ef\u4ee5\u4f7f\u7528<code>axvline()<\/code>\u51fd\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.figure()<\/p>\n<h2><strong>\u7ed8\u5236\u7ad6\u7ebf\uff0c\u6307\u5b9ax\u8f74\u4f4d\u7f6e\uff0c\u989c\u8272\u548c\u6837\u5f0f<\/strong><\/h2>\n<p>plt.axvline(x=2, color=&#39;r&#39;, linestyle=&#39;--&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u5176\u4ed6\u56fe\u5f62\u5143\u7d20<\/strong><\/h2>\n<p>plt.title(&#39;Vertical Line Example&#39;)<\/p>\n<p>plt.xlabel(&#39;X-axis&#39;)<\/p>\n<p>plt.ylabel(&#39;Y-axis&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<strong><code>plt.axvline()<\/code>\u51fd\u6570\u7528\u4e8e\u5728x=2\u7684\u4f4d\u7f6e\u7ed8\u5236\u4e00\u6761\u7ad6\u7ebf<\/strong>\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u8c03\u6574\u7ad6\u7ebf\u7684\u989c\u8272\u3001\u6837\u5f0f\u548c\u5bbd\u5ea6\u3002\u9664\u4e86\u7ed8\u5236\u7b80\u5355\u7684\u7ad6\u7ebf\uff0cMatplotlib\u8fd8\u5141\u8bb8\u4f60\u5728\u590d\u6742\u7684\u56fe\u8868\u4e2d\u6dfb\u52a0\u7ad6\u7ebf\uff0c\u4ee5\u6807\u8bb0\u7279\u5b9a\u7684\u6570\u636e\u70b9\u6216\u4e8b\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Tkinter\u8fdb\u884cGUI\u7ed8\u56fe<\/h3>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u9002\u5408\u521b\u5efa\u7b80\u5355\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\u3002\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Canvas\u7ec4\u4ef6\u7ed8\u5236\u56fe\u5f62\uff0c\u5305\u62ec\u7ad6\u7ebf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Tkinter\u7ed8\u5236\u7ad6\u7ebf\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&#39;Tkinter Vertical Line Example&#39;)<\/p>\n<h2><strong>\u521b\u5efaCanvas\u7ec4\u4ef6<\/strong><\/h2>\n<p>canvas = tk.Canvas(root, width=400, height=400)<\/p>\n<p>canvas.pack()<\/p>\n<h2><strong>\u7ed8\u5236\u7ad6\u7ebf<\/strong><\/h2>\n<p>canvas.create_line(200, 0, 200, 400, fill=&#39;blue&#39;, dash=(4, 2))<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<strong>\u4f7f\u7528<code>create_line()<\/code>\u65b9\u6cd5\u5728Canvas\u4e0a\u7ed8\u5236\u7ad6\u7ebf<\/strong>\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u8c03\u6574\u7ebf\u6761\u7684\u989c\u8272\u3001\u6837\u5f0f\u548c\u4f4d\u7f6e\u3002Tkinter\u9002\u7528\u4e8e\u9700\u8981\u4ea4\u4e92\u5f0f\u56fe\u5f62\u7528\u6237\u754c\u9762\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528PIL\u8fdb\u884c\u56fe\u50cf\u5904\u7406<\/h3>\n<\/p>\n<p><p>Python Imaging Library\uff08PIL\uff09\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u56fe\u50cf\u5904\u7406\u5e93\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u56fe\u50cf\u8fdb\u884c\u64cd\u4f5c\u7684\u573a\u666f\u3002\u901a\u8fc7PIL\uff0c\u4f60\u53ef\u4ee5\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u7ad6\u7ebf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u767d\u8272\u80cc\u666f\u7684\u56fe\u50cf<\/strong><\/h2>\n<p>image = Image.new(&#39;RGB&#39;, (400, 400), &#39;white&#39;)<\/p>\n<p>draw = ImageDraw.Draw(image)<\/p>\n<h2><strong>\u7ed8\u5236\u7ad6\u7ebf<\/strong><\/h2>\n<p>draw.line((200, 0, 200, 400), fill=&#39;green&#39;, width=3)<\/p>\n<h2><strong>\u4fdd\u5b58\u548c\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>image.save(&#39;vertical_line.png&#39;)<\/p>\n<p>image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<strong>\u4f7f\u7528<code>ImageDraw.Draw()<\/code>\u5bf9\u8c61\u7684<code>line()<\/code>\u65b9\u6cd5\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u7ad6\u7ebf<\/strong>\u3002PIL\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u9759\u6001\u56fe\u50cf\u8fdb\u884c\u590d\u6742\u5904\u7406\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7efc\u5408\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u7ed8\u5236\u7ad6\u7ebf\u662f\u5173\u952e\u3002\u5728\u6570\u636e\u53ef\u89c6\u5316\u4e2d\uff0cMatplotlib\u662f\u9996\u9009\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u8f7b\u677e\u5904\u7406\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u8868\u548c\u6570\u636e\u3002\u800c\u5728\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\u65f6\uff0cTkinter\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5bf9\u4e8e\u56fe\u50cf\u5904\u7406\uff0cPIL\u5219\u662f\u5f3a\u5927\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><h4>\u6570\u636e\u53ef\u89c6\u5316\u4e2d\u7684\u5e94\u7528<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u4e2d\uff0c\u7ad6\u7ebf\u5e38\u7528\u4e8e\u6807\u8bb0\u7279\u5b9a\u7684\u6570\u636e\u70b9\u6216\u9608\u503c\u3002\u4f8b\u5982\uff0c\u5728\u80a1\u7968\u4ef7\u683c\u8d70\u52bf\u56fe\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u7ad6\u7ebf\u6807\u8bb0\u91cd\u8981\u7684\u5e02\u573a\u4e8b\u4ef6\u3002\u4f7f\u7528Matplotlib\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u96c6\u6210\u7ad6\u7ebf\u4e0e\u5176\u4ed6\u56fe\u8868\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>\u751f\u6210\u968f\u673a\u6570\u636e<\/strong><\/h2>\n<p>np.random.seed(0)<\/p>\n<p>data = np.random.randn(100).cumsum()<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u8868<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 6))<\/p>\n<p>plt.plot(data, label=&#39;Random Data&#39;)<\/p>\n<p>plt.axvline(x=50, color=&#39;red&#39;, linestyle=&#39;--&#39;, label=&#39;Event Marker&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u56fe\u4f8b\u548c\u6807\u7b7e<\/strong><\/h2>\n<p>plt.legend()<\/p>\n<p>plt.title(&#39;Data Visualization with Vertical Line&#39;)<\/p>\n<p>plt.xlabel(&#39;Index&#39;)<\/p>\n<p>plt.ylabel(&#39;Value&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u8868<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u56fe\u5f62\u7528\u6237\u754c\u9762\u4e2d\u7684\u5e94\u7528<\/h4>\n<\/p>\n<p><p>\u5728\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\u65f6\uff0c\u7ad6\u7ebf\u53ef\u4ee5\u7528\u4f5c\u5206\u9694\u7ebf\u6216\u89c6\u89c9\u6307\u5f15\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u5e26\u6709\u591a\u4e2a\u9762\u677f\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u7ad6\u7ebf\u5206\u9694\u4e0d\u540c\u7684\u533a\u57df\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Tkinter\u5e94\u7528\u7a0b\u5e8f\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&#39;GUI with Vertical Line&#39;)<\/p>\n<h2><strong>\u521b\u5efaCanvas\u7ec4\u4ef6<\/strong><\/h2>\n<p>canvas = tk.Canvas(root, width=400, height=400)<\/p>\n<p>canvas.pack()<\/p>\n<h2><strong>\u7ed8\u5236\u7ad6\u7ebf\u4f5c\u4e3a\u5206\u9694\u7b26<\/strong><\/h2>\n<p>canvas.create_line(200, 0, 200, 400, fill=&#39;black&#39;, width=2)<\/p>\n<h2><strong>\u6dfb\u52a0\u6587\u672c<\/strong><\/h2>\n<p>canvas.create_text(100, 200, text=&#39;Left Panel&#39;, fill=&#39;blue&#39;, font=(&#39;Helvetica&#39;, 16))<\/p>\n<p>canvas.create_text(300, 200, text=&#39;Right Panel&#39;, fill=&#39;green&#39;, font=(&#39;Helvetica&#39;, 16))<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u56fe\u50cf\u5904\u7406\u4e2d\u7684\u5e94\u7528<\/h4>\n<\/p>\n<p><p>\u5728\u56fe\u50cf\u5904\u7406\u4e2d\uff0c\u7ad6\u7ebf\u53ef\u4ee5\u7528\u4e8e\u5404\u79cd\u6548\u679c\u548c\u6ee4\u955c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u7167\u7247\u7f16\u8f91\u8f6f\u4ef6\u4e2d\u4f7f\u7528\u7ad6\u7ebf\u521b\u5efa\u62fc\u63a5\u6548\u679c\u6216\u6dfb\u52a0\u88c5\u9970\u7ebf\u6761\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528PIL\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u591a\u6761\u7ad6\u7ebf\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u767d\u8272\u80cc\u666f\u7684\u56fe\u50cf<\/strong><\/h2>\n<p>image = Image.new(&#39;RGB&#39;, (400, 400), &#39;white&#39;)<\/p>\n<p>draw = ImageDraw.Draw(image)<\/p>\n<h2><strong>\u7ed8\u5236\u591a\u6761\u7ad6\u7ebf<\/strong><\/h2>\n<p>for x in range(50, 350, 50):<\/p>\n<p>    draw.line((x, 0, x, 400), fill=&#39;gray&#39;, width=2)<\/p>\n<h2><strong>\u4fdd\u5b58\u548c\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>image.save(&#39;multiple_vertical_lines.png&#39;)<\/p>\n<p>image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u5230\u5728Python\u4e2d\u7ed8\u5236\u7ad6\u7ebf\u7684\u591a\u79cd\u65b9\u6cd5\u3002<strong>Matplotlib\u9002\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\uff0cTkinter\u9002\u7528\u4e8eGUI\u5f00\u53d1\uff0c\u800cPIL\u5219\u9002\u5408\u56fe\u50cf\u5904\u7406<\/strong>\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u5c06\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u5b8c\u6210\u4efb\u52a1\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7ed3\u5408\u8fd9\u4e9b\u6280\u672f\u53ef\u4ee5\u521b\u9020\u51fa\u590d\u6742\u800c\u4e30\u5bcc\u7684\u56fe\u5f62\u6548\u679c\u3002\u65e0\u8bba\u662f\u6570\u636e\u5206\u6790\u3001\u8f6f\u4ef6\u5f00\u53d1\u8fd8\u662f\u56fe\u50cf\u5904\u7406\uff0c\u7406\u89e3\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u7ed8\u5236\u7ad6\u7ebf\u5c06\u5927\u5927\u63d0\u5347\u4f60\u7684\u9879\u76ee\u8d28\u91cf\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528Matplotlib\u7ed8\u5236\u7ad6\u7ebf\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0cMatplotlib\u5e93\u662f\u4e00\u4e2a\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\uff0c\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u7ad6\u7ebf\u3002\u8981\u7ed8\u5236\u7ad6\u7ebf\uff0c\u53ef\u4ee5\u4f7f\u7528<code>plt.axvline()<\/code>\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u5141\u8bb8\u4f60\u6307\u5b9a\u7ad6\u7ebf\u7684\u4f4d\u7f6e\u3001\u989c\u8272\u3001\u7ebf\u578b\u7b49\u5c5e\u6027\u3002\u4f8b\u5982\uff0c<code>plt.axvline(x=2, color=&#39;r&#39;, linestyle=&#39;--&#39;)<\/code>\u5c06\u4f1a\u5728x=2\u7684\u4f4d\u7f6e\u7ed8\u5236\u4e00\u6761\u7ea2\u8272\u7684\u865a\u7ebf\u7ad6\u7ebf\u3002<\/p>\n<p><strong>\u9664\u4e86Matplotlib\uff0c\u8fd8\u6709\u54ea\u4e9bPython\u5e93\u53ef\u4ee5\u7ed8\u5236\u7ad6\u7ebf\uff1f<\/strong><br \/>\u9664\u4e86Matplotlib\uff0cSeaborn\u548cPlotly\u7b49\u5e93\u4e5f\u53ef\u4ee5\u7ed8\u5236\u7ad6\u7ebf\u3002Seaborn\u662f\u57fa\u4e8eMatplotlib\u6784\u5efa\u7684\uff0c\u63d0\u4f9b\u4e86\u66f4\u7f8e\u89c2\u7684\u56fe\u5f62\uff0c\u800cPlotly\u5219\u652f\u6301\u4ea4\u4e92\u5f0f\u56fe\u8868\u3002\u4f7f\u7528\u8fd9\u4e9b\u5e93\u65f6\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u7c7b\u4f3c\u7684\u51fd\u6570\u6216\u65b9\u6cd5\u5b9e\u73b0\u7ad6\u7ebf\u7684\u7ed8\u5236\u3002<\/p>\n<p><strong>\u6211\u8be5\u5982\u4f55\u8bbe\u7f6e\u7ad6\u7ebf\u7684\u6837\u5f0f\u548c\u989c\u8272\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Matplotlib\u7ed8\u5236\u7ad6\u7ebf\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u6765\u8bbe\u7f6e\u6837\u5f0f\u548c\u989c\u8272\u3002\u4f8b\u5982\uff0c<code>plt.axvline(x=1, color=&#39;blue&#39;, linestyle=&#39;:&#39;, linewidth=2)<\/code>\u4f1a\u7ed8\u5236\u4e00\u6761\u84dd\u8272\u7684\u70b9\u7ebf\u7ad6\u7ebf\uff0c\u7ebf\u5bbd\u4e3a2\u3002\u901a\u8fc7\u8c03\u6574\u8fd9\u4e9b\u53c2\u6570\uff0c\u53ef\u4ee5\u4f7f\u7ad6\u7ebf\u7b26\u5408\u4f60\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u7ed8\u5236\u7ad6\u7ebf\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528Tkinter\u8fdb [&hellip;]","protected":false},"author":3,"featured_media":929270,"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\/929269"}],"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=929269"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/929269\/revisions"}],"predecessor-version":[{"id":929271,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/929269\/revisions\/929271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/929270"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=929269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=929269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=929269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}