{"id":993555,"date":"2024-12-27T08:47:01","date_gmt":"2024-12-27T00:47:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/993555.html"},"modified":"2024-12-27T08:47:04","modified_gmt":"2024-12-27T00:47:04","slug":"python%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e5%9f%ba%e9%87%91%e6%8c%81%e4%bb%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/993555.html","title":{"rendered":"python\u5982\u4f55\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070916\/8e0d317d-fa25-4a2c-aab7-048ac2002a8b.webp\" alt=\"python\u5982\u4f55\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\" \/><\/p>\n<p><p> <strong>Python\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u722c\u866b\u3001API\u63a5\u53e3\u3001\u6570\u636e\u63d0\u4f9b\u5546\u5e73\u53f0\u7b49\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0<\/strong>\uff0c\u5176\u4e2dAPI\u63a5\u53e3\u662f\u6700\u4e3a\u5e38\u7528\u4e14\u53ef\u9760\u7684\u65b9\u5f0f\u3002\u4f7f\u7528API\u63a5\u53e3\u53ef\u4ee5\u83b7\u53d6\u5b9e\u65f6\u7684\u57fa\u91d1\u6301\u4ed3\u6570\u636e\uff0c\u540c\u65f6\u6570\u636e\u683c\u5f0f\u89c4\u8303\u3001\u51c6\u786e\u6027\u9ad8\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u722c\u866b\u6280\u672f\u4ece\u57fa\u91d1\u516c\u53f8\u5b98\u7f51\u6216\u91d1\u878d\u7f51\u7ad9\u6293\u53d6\u76f8\u5173\u6570\u636e\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u6cd5\u5f8b\u5408\u89c4\u6027\u3002\u5728\u4f7f\u7528API\u63a5\u53e3\u65f6\uff0c\u901a\u5e38\u9700\u8981\u6ce8\u518c\u5f00\u53d1\u8005\u8d26\u53f7\uff0c\u5e76\u83b7\u53d6API\u5bc6\u94a5\u4ee5\u4fbf\u8bbf\u95ee\u6570\u636e\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u7f51\u7edc\u722c\u866b\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3<\/p>\n<\/p>\n<p><p>\u7f51\u7edc\u722c\u866b\u662f\u4e00\u79cd\u81ea\u52a8\u5316\u7684\u6570\u636e\u91c7\u96c6\u6280\u672f\uff0c\u53ef\u4ee5\u4ece\u7f51\u9875\u4e2d\u63d0\u53d6\u6570\u636e\u3002\u4f7f\u7528Python\u7684\u722c\u866b\u5e93\u5982BeautifulSoup\u3001Scrapy\u7b49\uff0c\u53ef\u4ee5\u89e3\u6790HTML\u9875\u9762\u5e76\u63d0\u53d6\u57fa\u91d1\u6301\u4ed3\u4fe1\u606f\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bbe\u7f6e\u722c\u866b\u73af\u5883<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5\u5fc5\u8981\u7684Python\u5e93\uff0c\u5982<code>requests<\/code>\u7528\u4e8e\u53d1\u9001HTTP\u8bf7\u6c42\uff0c<code>BeautifulSoup<\/code>\u7528\u4e8e\u89e3\u6790HTML\u6587\u6863\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install requests beautifulsoup4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u53d1\u9001HTTP\u8bf7\u6c42\u5e76\u89e3\u6790\u9875\u9762<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>requests<\/code>\u5e93\u53d1\u9001\u8bf7\u6c42\u83b7\u53d6\u57fa\u91d1\u7684\u9875\u9762HTML\uff0c\u7136\u540e\u7528<code>BeautifulSoup<\/code>\u89e3\u6790\u9875\u9762\uff0c\u63d0\u53d6\u6301\u4ed3\u4fe1\u606f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>url = &#39;https:\/\/example-fund-page.com\/fund-holdings&#39;<\/p>\n<p>response = requests.get(url)<\/p>\n<p>soup = BeautifulSoup(response.text, &#39;html.parser&#39;)<\/p>\n<h2><strong>\u5047\u8bbe\u6301\u4ed3\u4fe1\u606f\u5728\u4e00\u4e2a\u7279\u5b9a\u7684table\u4e2d<\/strong><\/h2>\n<p>table = soup.find(&#39;table&#39;, {&#39;class&#39;: &#39;fund-holdings&#39;})<\/p>\n<p>rows = table.find_all(&#39;tr&#39;)<\/p>\n<p>for row in rows:<\/p>\n<p>    cols = row.find_all(&#39;td&#39;)<\/p>\n<p>    holdings = [col.text.strip() for col in cols]<\/p>\n<p>    print(holdings)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5904\u7406\u53cd\u722c\u673a\u5236<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7f51\u7ad9\u53ef\u80fd\u4f1a\u8bbe\u7f6e\u53cd\u722c\u673a\u5236\uff0c\u5982CAPTCHA\u3001IP\u5c01\u7981\u7b49\uff0c\u9700\u8981\u5408\u7406\u8bbe\u7f6e\u8bf7\u6c42\u5934\u3001\u4f7f\u7528\u4ee3\u7406IP\u7b49\u65b9\u5f0f\u5e94\u5bf9\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528API\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3<\/p>\n<\/p>\n<p><p>API\u63d0\u4f9b\u4e86\u66f4\u52a0\u89c4\u8303\u548c\u9ad8\u6548\u7684\u65b9\u5f0f\u6765\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u3002\u8bb8\u591a\u91d1\u878d\u5e73\u53f0\u548c\u6570\u636e\u63d0\u4f9b\u5546\u63d0\u4f9bAPI\u670d\u52a1\uff0c\u4f8b\u5982\uff1a\u6668\u661f\uff08Morningstar\uff09\u3001\u96c5\u864e\u8d22\u7ecf\u3001\u805a\u5bbd\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u9009\u62e9\u5408\u9002\u7684API<\/strong><\/li>\n<\/ol>\n<p><p>\u9009\u62e9\u4e00\u4e2a\u63d0\u4f9b\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u7684API\u670d\u52a1\u5546\uff0c\u6ce8\u518c\u8d26\u53f7\u5e76\u83b7\u53d6API\u5bc6\u94a5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528API\u83b7\u53d6\u6570\u636e<\/strong><\/li>\n<\/ol>\n<p><p>\u4ee5\u805a\u5bbdAPI\u4e3a\u4f8b\uff0c\u9996\u5148\u5b89\u88c5\u76f8\u5e94\u7684SDK\uff0c\u4f7f\u7528API\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install jqdatasdk<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u793a\u4f8b\u4ee3\u7801<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">from jqdatasdk import auth, get_fundamentals<\/p>\n<h2><strong>\u767b\u5f55<\/strong><\/h2>\n<p>auth(&#39;your_username&#39;, &#39;your_password&#39;)<\/p>\n<h2><strong>\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u4fe1\u606f<\/strong><\/h2>\n<p>query = get_fundamentals(&#39;000001.XSHE&#39;, date=&#39;2023-01-01&#39;)<\/p>\n<p>print(query)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4f7f\u7528API\u65f6\uff0c\u9700\u5173\u6ce8API\u7684\u4f7f\u7528\u9650\u5236\uff0c\u5982\u8bf7\u6c42\u6b21\u6570\u3001\u6570\u636e\u8303\u56f4\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6570\u636e\u63d0\u4f9b\u5546\u5e73\u53f0\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3<\/p>\n<\/p>\n<p><p>\u9664\u4e86API\u548c\u722c\u866b\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u63d0\u4f9b\u5546\u5e73\u53f0\u4e0b\u8f7d\u57fa\u91d1\u6301\u4ed3\u6570\u636e\uff0c\u901a\u5e38\u9700\u8981\u4ed8\u8d39\u6216\u8ba2\u9605\u76f8\u5e94\u7684\u670d\u52a1\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u9009\u62e9\u6570\u636e\u63d0\u4f9b\u5546<\/strong><\/li>\n<\/ol>\n<p><p>\u9009\u62e9\u4e00\u4e2a\u53ef\u9760\u7684\u6570\u636e\u63d0\u4f9b\u5546\uff0c\u6ce8\u518c\u8d26\u53f7\u5e76\u8d2d\u4e70\u6570\u636e\u670d\u52a1\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4e0b\u8f7d\u548c\u5904\u7406\u6570\u636e<\/strong><\/li>\n<\/ol>\n<p><p>\u6839\u636e\u5e73\u53f0\u63d0\u4f9b\u7684\u63a5\u53e3\u6216\u4e0b\u8f7d\u529f\u80fd\uff0c\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u6570\u636e\uff0c\u5e76\u4f7f\u7528Python\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u548c\u5206\u6790\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u6570\u636e\u6e05\u6d17\u4e0e\u5206\u6790<\/p>\n<\/p>\n<p><p>\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u540e\uff0c\u901a\u5e38\u9700\u8981\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u548c\u5206\u6790\uff0c\u4ee5\u4fbf\u8fdb\u4e00\u6b65\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6570\u636e\u6e05\u6d17<\/strong><\/li>\n<\/ol>\n<p><p>\u5bf9\u83b7\u53d6\u7684\u539f\u59cb\u6570\u636e\u8fdb\u884c\u6e05\u6d17\uff0c\u5305\u62ec\u7f3a\u5931\u503c\u5904\u7406\u3001\u6570\u636e\u683c\u5f0f\u8f6c\u6362\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u793a\u4f8b\u6570\u636e\u6e05\u6d17<\/strong><\/h2>\n<p>data = pd.read_csv(&#39;fund_holdings.csv&#39;)<\/p>\n<p>data.dropna(inplace=True)<\/p>\n<p>data[&#39;\u6301\u4ed3\u6bd4\u4f8b&#39;] = data[&#39;\u6301\u4ed3\u6bd4\u4f8b&#39;].str.strip(&#39;%&#39;).astype(float) \/ 100<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6570\u636e\u5206\u6790<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528Python\u7684Pandas\u5e93\u8fdb\u884c\u6570\u636e\u5206\u6790\uff0c\u5982\u8ba1\u7b97\u6301\u4ed3\u5360\u6bd4\u3001\u5386\u53f2\u6301\u4ed3\u53d8\u5316\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8ba1\u7b97\u6301\u4ed3\u5360\u6bd4<\/p>\n<p>total_value = data[&#39;\u5e02\u503c&#39;].sum()<\/p>\n<p>data[&#39;\u6301\u4ed3\u5360\u6bd4&#39;] = data[&#39;\u5e02\u503c&#39;] \/ total_value<\/p>\n<h2><strong>\u5206\u6790\u5386\u53f2\u6301\u4ed3\u53d8\u5316<\/strong><\/h2>\n<p>historical_data = pd.read_csv(&#39;historical_holdings.csv&#39;)<\/p>\n<p>historical_data.groupby(&#39;\u65e5\u671f&#39;)[&#39;\u6301\u4ed3\u5360\u6bd4&#39;].mean().plot()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u53ef\u89c6\u5316\u4e0e\u62a5\u544a\u751f\u6210<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u53ef\u89c6\u5316\u5de5\u5177\u751f\u6210\u56fe\u8868\u548c\u62a5\u544a\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u5c55\u793a\u57fa\u91d1\u6301\u4ed3\u60c5\u51b5\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u53ef\u89c6\u5316<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528Matplotlib\u6216Plotly\u7b49\u5e93\u751f\u6210\u53ef\u89c6\u5316\u56fe\u8868\uff0c\u5982\u6301\u4ed3\u7ed3\u6784\u997c\u56fe\u3001\u6301\u4ed3\u53d8\u5316\u6298\u7ebf\u56fe\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u6301\u4ed3\u7ed3\u6784\u997c\u56fe<\/strong><\/h2>\n<p>data.groupby(&#39;\u884c\u4e1a&#39;)[&#39;\u6301\u4ed3\u5360\u6bd4&#39;].sum().plot.pie()<\/p>\n<p>plt.show()<\/p>\n<h2><strong>\u6301\u4ed3\u53d8\u5316\u6298\u7ebf\u56fe<\/strong><\/h2>\n<p>historical_data.plot(x=&#39;\u65e5\u671f&#39;, y=&#39;\u6301\u4ed3\u5360\u6bd4&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u62a5\u544a\u751f\u6210<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528Python\u751f\u6210PDF\u6216HTML\u683c\u5f0f\u7684\u62a5\u544a\uff0c\u5305\u542b\u6301\u4ed3\u5206\u6790\u7684\u56fe\u8868\u548c\u6587\u5b57\u8bf4\u660e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from fpdf import FPDF<\/p>\n<h2><strong>\u751f\u6210PDF\u62a5\u544a<\/strong><\/h2>\n<p>pdf = FPDF()<\/p>\n<p>pdf.add_page()<\/p>\n<p>pdf.set_font(&#39;Arial&#39;, &#39;B&#39;, 16)<\/p>\n<p>pdf.cell(40, 10, &#39;\u57fa\u91d1\u6301\u4ed3\u62a5\u544a&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0\u56fe\u8868<\/strong><\/h2>\n<p>pdf.image(&#39;holding_pie_chart.png&#39;, x=10, y=20, w=100)<\/p>\n<p>pdf.output(&#39;fund_report.pdf&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3\uff0c\u901a\u8fc7\u4ee5\u4e0a\u4ecb\u7ecd\u7684\u51e0\u79cd\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u5b9e\u73b0\u5bf9\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u7684\u83b7\u53d6\u548c\u5206\u6790\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u3002\u5728\u4f7f\u7528\u7f51\u7edc\u722c\u866b\u65f6\uff0c\u8981\u6ce8\u610f\u5408\u89c4\u6027\u548c\u6548\u7387\uff1b\u4f7f\u7528API\u65f6\uff0c\u8981\u5173\u6ce8\u670d\u52a1\u5546\u7684\u4f7f\u7528\u9650\u5236\u548c\u6570\u636e\u51c6\u786e\u6027\uff1b\u800c\u4f7f\u7528\u6570\u636e\u5e73\u53f0\uff0c\u5219\u9700\u8003\u8651\u6210\u672c\u4e0e\u6570\u636e\u8d28\u91cf\u7684\u5e73\u8861\u3002\u901a\u8fc7\u79d1\u5b66\u7684\u6570\u636e\u5904\u7406\u4e0e\u5206\u6790\uff0c\u80fd\u591f\u4e3a\u6295\u8d44\u51b3\u7b56\u63d0\u4f9b\u6709\u529b\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u83b7\u53d6\u57fa\u91d1\u7684\u5b9e\u65f6\u6301\u4ed3\u6570\u636e\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u91d1\u878d\u6570\u636e\u63a5\u53e3\u6216API\u6765\u83b7\u53d6\u57fa\u91d1\u7684\u5b9e\u65f6\u6301\u4ed3\u6570\u636e\u3002\u4f8b\u5982\uff0c\u8bb8\u591a\u91d1\u878d\u6570\u636e\u670d\u52a1\u63d0\u4f9b\u5546\u5982\u4e07\u5f97\u3001\u540c\u82b1\u987a\u3001Alpha Vantage\u7b49\u90fd\u63d0\u4f9bAPI\uff0c\u53ef\u4ee5\u901a\u8fc7Python\u7684requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\u6765\u83b7\u53d6\u76f8\u5173\u6570\u636e\u3002\u786e\u4fdd\u5728\u4f7f\u7528\u4e4b\u524d\u6ce8\u518c\u5e76\u83b7\u53d6API\u5bc6\u94a5\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u65f6\uff0c\u5982\u4f55\u5904\u7406\u6570\u636e\u7684\u683c\u5f0f\u548c\u6e05\u6d17\uff1f<\/strong><br \/>\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u901a\u5e38\u4ee5JSON\u6216CSV\u683c\u5f0f\u8fd4\u56de\u3002\u4f7f\u7528Pandas\u5e93\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bfb\u53d6\u548c\u5904\u7406\u8fd9\u4e9b\u6570\u636e\u3002\u9996\u5148\uff0c\u4f7f\u7528<code>pd.read_json()<\/code>\u6216<code>pd.read_csv()<\/code>\u8bfb\u53d6\u6570\u636e\uff0c\u7136\u540e\u5229\u7528Pandas\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\u5bf9\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u548c\u8f6c\u6362\uff0c\u5305\u62ec\u53bb\u9664\u7f3a\u5931\u503c\u3001\u91cd\u547d\u540d\u5217\u548c\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u7b49\u64cd\u4f5c\uff0c\u4ee5\u4fbf\u4e8e\u540e\u7eed\u5206\u6790\u3002<\/p>\n<p><strong>\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u540e\uff0c\u5982\u4f55\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Matplotlib\u6216Seaborn\u7b49\u53ef\u89c6\u5316\u5e93\u6765\u5c55\u793a\u57fa\u91d1\u6301\u4ed3\u6570\u636e\u3002\u901a\u8fc7\u7ed8\u5236\u6761\u5f62\u56fe\u3001\u997c\u56fe\u7b49\uff0c\u60a8\u53ef\u4ee5\u76f4\u89c2\u5730\u770b\u5230\u57fa\u91d1\u7684\u8d44\u4ea7\u914d\u7f6e\u60c5\u51b5\u3002\u4f7f\u7528<code>plt.bar()<\/code>\u53ef\u4ee5\u7ed8\u5236\u6761\u5f62\u56fe\uff0c<code>plt.pie()<\/code>\u53ef\u4ee5\u7ed8\u5236\u997c\u56fe\uff0c\u8fd9\u4e9b\u90fd\u80fd\u5e2e\u52a9\u66f4\u597d\u5730\u7406\u89e3\u6570\u636e\u80cc\u540e\u7684\u542b\u4e49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u83b7\u53d6\u57fa\u91d1\u6301\u4ed3\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u722c\u866b\u3001API\u63a5\u53e3\u3001\u6570\u636e\u63d0\u4f9b\u5546\u5e73\u53f0\u7b49\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5176\u4e2dAPI\u63a5\u53e3\u662f\u6700\u4e3a\u5e38\u7528\u4e14 [&hellip;]","protected":false},"author":3,"featured_media":993564,"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\/993555"}],"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=993555"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993555\/revisions"}],"predecessor-version":[{"id":993567,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993555\/revisions\/993567"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/993564"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=993555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=993555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=993555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}