{"id":995307,"date":"2024-12-27T09:03:46","date_gmt":"2024-12-27T01:03:46","guid":{"rendered":""},"modified":"2024-12-27T09:03:48","modified_gmt":"2024-12-27T01:03:48","slug":"python%e5%a6%82%e4%bd%95%e7%bb%9f%e8%ae%a1%e6%96%87%e4%bb%b6%e8%af%8d%e9%a2%91","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/995307.html","title":{"rendered":"python\u5982\u4f55\u7edf\u8ba1\u6587\u4ef6\u8bcd\u9891"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071951\/3db6b32e-93dd-4281-9f87-76d8340ba598.webp\" alt=\"python\u5982\u4f55\u7edf\u8ba1\u6587\u4ef6\u8bcd\u9891\" \/><\/p>\n<p><p> <strong>\u8981\u7edf\u8ba1\u6587\u4ef6\u4e2d\u7684\u8bcd\u9891\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u63d0\u4f9b\u7684\u591a\u79cd\u5de5\u5177\u548c\u5e93\uff0c\u5982collections\u6a21\u5757\u4e2d\u7684Counter\u7c7b\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757re\u4ee5\u53ca\u5185\u7f6e\u5b57\u7b26\u4e32\u64cd\u4f5c\u65b9\u6cd5\u3002\u9996\u5148\uff0c\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u63a5\u7740\u5229\u7528\u8fd9\u4e9b\u5de5\u5177\u5bf9\u6587\u672c\u8fdb\u884c\u5904\u7406\uff0c\u4ece\u800c\u7edf\u8ba1\u6bcf\u4e2a\u5355\u8bcd\u51fa\u73b0\u7684\u9891\u7387\u3002<\/strong>\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528Counter\u7c7b\u662f\u6700\u7b80\u5355\u4e14\u9ad8\u6548\u7684\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6587\u4ef6\u8bfb\u53d6\u4e0e\u9884\u5904\u7406<\/p>\n<\/p>\n<p><p>\u5728\u7edf\u8ba1\u8bcd\u9891\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u8bfb\u53d6\u6587\u4ef6\u5e76\u5bf9\u6587\u672c\u8fdb\u884c\u57fa\u672c\u7684\u9884\u5904\u7406\u3002\u5e38\u89c1\u7684\u9884\u5904\u7406\u6b65\u9aa4\u5305\u62ec\u5c06\u6587\u672c\u8f6c\u6362\u4e3a\u5c0f\u5199\u3001\u53bb\u9664\u6807\u70b9\u7b26\u53f7\u3001\u5206\u8bcd\u7b49\u3002\u8fd9\u4e9b\u6b65\u9aa4\u80fd\u591f\u786e\u4fdd\u7edf\u8ba1\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u5185\u7f6e\u7684open()\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u3002\u8bfb\u53d6\u65f6\u53ef\u4ee5\u9009\u62e9\u4ee5\u6587\u672c\u6a21\u5f0f\u6253\u5f00\u6587\u4ef6\uff0c\u8fd9\u6837\u53ef\u4ee5\u76f4\u63a5\u5f97\u5230\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;filename.txt&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as file:<\/p>\n<p>    text = file.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u672c\u9884\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u9884\u5904\u7406\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u7edf\u4e00\u6587\u672c\u683c\u5f0f\uff0c\u4ee5\u4fbf\u540e\u7eed\u5904\u7406\u3002\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u51e0\u6b65\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5c06\u6587\u672c\u8f6c\u6362\u4e3a\u5c0f\u5199<\/strong>\uff1a\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u5927\u5c0f\u5199\u5bf9\u7edf\u8ba1\u7ed3\u679c\u7684\u5f71\u54cd\u3002<\/li>\n<li><strong>\u53bb\u9664\u6807\u70b9\u7b26\u53f7<\/strong>\uff1a\u6807\u70b9\u7b26\u53f7\u901a\u5e38\u4e0d\u88ab\u89c6\u4e3a\u5355\u8bcd\u7684\u4e00\u90e8\u5206\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u53bb\u9664\u3002<\/li>\n<li><strong>\u5206\u8bcd<\/strong>\uff1a\u5c06\u6587\u672c\u62c6\u5206\u4e3a\u5355\u72ec\u7684\u5355\u8bcd\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684split()\u65b9\u6cd5\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = text.lower()<\/p>\n<p>text = re.sub(r&#39;[^\\w\\s]&#39;, &#39;&#39;, text)  # \u53bb\u9664\u6807\u70b9\u7b26\u53f7<\/p>\n<p>words = text.split()  # \u5206\u8bcd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528Counter\u8fdb\u884c\u8bcd\u9891\u7edf\u8ba1<\/p>\n<\/p>\n<p><p>Python\u7684collections\u6a21\u5757\u63d0\u4f9b\u4e86Counter\u7c7b\uff0c\u4e13\u95e8\u7528\u4e8e\u7edf\u8ba1\u53ef\u8fed\u4ee3\u5bf9\u8c61\u4e2d\u5143\u7d20\u7684\u51fa\u73b0\u6b21\u6570\u3002\u5bf9\u4e8e\u8bcd\u9891\u7edf\u8ba1\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u4fbf\u5229\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7edf\u8ba1\u8bcd\u9891<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Counter\u7c7b\u53ef\u4ee5\u76f4\u63a5\u4f20\u5165\u5206\u8bcd\u540e\u7684\u5217\u8868\uff0c\u7136\u540e\u5b83\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5b57\u5178\uff0c\u5176\u4e2d\u952e\u662f\u5355\u8bcd\uff0c\u503c\u662f\u8be5\u5355\u8bcd\u51fa\u73b0\u7684\u6b21\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import Counter<\/p>\n<p>word_counts = Counter(words)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u83b7\u53d6\u7ed3\u679c<\/strong><\/p>\n<\/p>\n<p><p>Counter\u5bf9\u8c61\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u83b7\u53d6\u7edf\u8ba1\u7ed3\u679c\uff0c\u5982most_common()\u65b9\u6cd5\u53ef\u4ee5\u5f97\u5230\u51fa\u73b0\u6b21\u6570\u6700\u591a\u7684\u5355\u8bcd\u53ca\u5176\u9891\u7387\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">most_common_words = word_counts.most_common(10)<\/p>\n<p>for word, frequency in most_common_words:<\/p>\n<p>    print(f&#39;{word}: {frequency}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u9ad8\u7ea7\u6587\u672c\u5904\u7406<\/p>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u590d\u6742\u6587\u672c\u5904\u7406\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\u3002\u5b83\u5141\u8bb8\u4f60\u5b9a\u4e49\u66f4\u590d\u6742\u7684\u6a21\u5f0f\u6765\u5339\u914d\u548c\u5904\u7406\u6587\u672c\u3002\u8fd9\u5728\u5904\u7406\u5d4c\u5957\u7ed3\u6784\u3001\u7279\u6b8a\u5b57\u7b26\u6216\u8005\u7279\u5b9a\u683c\u5f0f\u7684\u6570\u636e\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u5206\u8bcd\u89c4\u5219<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u6587\u672c\u4e2d\u5305\u542b\u590d\u6742\u7684\u5206\u9694\u7b26\u6216\u8005\u9700\u8981\u6839\u636e\u7279\u5b9a\u89c4\u5219\u5206\u8bcd\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7684re.split()\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">words = re.split(r&#39;\\W+&#39;, text)  # \\W+\u5339\u914d\u4efb\u4f55\u975e\u5b57\u6bcd\u6570\u5b57\u5b57\u7b26\u5e8f\u5217<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bc6\u522b\u7279\u5b9a\u6a21\u5f0f<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u8bc6\u522b\u6587\u672c\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\uff0c\u5982\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3001\u65e5\u671f\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ls = re.findall(r&#39;\\b[\\w.-]+?@\\w+?\\.\\w+?\\b&#39;, text)<\/p>\n<p>for email in emails:<\/p>\n<p>    print(email)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f18\u5316\u548c\u63d0\u5347\u7edf\u8ba1\u6548\u7387<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u89c4\u6a21\u6587\u672c\u6570\u636e\u65f6\uff0c\u6027\u80fd\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63d0\u5347\u6548\u7387\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u589e\u91cf\u7edf\u8ba1<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u975e\u5e38\u5927\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u8003\u8651\u9010\u884c\u8bfb\u53d6\u6587\u4ef6\u5e76\u589e\u91cf\u66f4\u65b0\u8bcd\u9891\u7edf\u8ba1\uff0c\u4ee5\u8282\u7701\u5185\u5b58\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">word_counts = Counter()<\/p>\n<p>with open(&#39;filename.txt&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as file:<\/p>\n<p>    for line in file:<\/p>\n<p>        words = re.sub(r&#39;[^\\w\\s]&#39;, &#39;&#39;, line.lower()).split()<\/p>\n<p>        word_counts.update(words)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u591a\u7ebf\u7a0b\u6216\u591a\u8fdb\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5904\u7406\u591a\u4e2a\u6587\u4ef6\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u591a\u7ebf\u7a0b\u6216\u591a\u8fdb\u7a0b\u6765\u5e76\u884c\u5316\u4efb\u52a1\u3002\u4e0d\u8fc7\uff0cPython\u7684GIL\u9650\u5236\u4e86\u591a\u7ebf\u7a0b\u5728CPU\u5bc6\u96c6\u578b\u4efb\u52a1\u4e2d\u7684\u6548\u7387\u63d0\u5347\uff0c\u56e0\u6b64\u5bf9\u4e8eCPU\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u4f7f\u7528\u591a\u8fdb\u7a0b\u53ef\u80fd\u66f4\u6709\u6548\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u6269\u5c55\u5e94\u7528\u4e0e\u53ef\u89c6\u5316<\/p>\n<\/p>\n<p><p>\u7edf\u8ba1\u8bcd\u9891\u7684\u7ed3\u679c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u7528\u4e8e\u6587\u672c\u5206\u6790\u548c\u53ef\u89c6\u5316\uff0c\u5982\u751f\u6210\u8bcd\u4e91\u3001\u5206\u6790\u6587\u672c\u4e3b\u9898\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u751f\u6210\u8bcd\u4e91<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528wordcloud\u5e93\u6765\u751f\u6210\u8bcd\u4e91\uff0c\u4ee5\u53ef\u89c6\u5316\u8bcd\u9891\u5206\u5e03\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wordcloud import WordCloud<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>wordcloud = WordCloud(width=800, height=400).generate_from_frequencies(word_counts)<\/p>\n<p>plt.imshow(wordcloud, interpolation=&#39;bilinear&#39;)<\/p>\n<p>plt.axis(&#39;off&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u672c\u5206\u6790<\/strong><\/p>\n<\/p>\n<p><p>\u7ed3\u5408\u5176\u4ed6\u6587\u672c\u5206\u6790\u5de5\u5177\u548c\u5e93\uff0c\u53ef\u4ee5\u5bf9\u6587\u672c\u8fdb\u884c\u66f4\u6df1\u5165\u7684\u5206\u6790\uff0c\u5982\u4e3b\u9898\u5efa\u6a21\u3001\u60c5\u611f\u5206\u6790\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\uff1a\u4f7f\u7528Gensim\u8fdb\u884c\u4e3b\u9898\u5efa\u6a21<\/p>\n<p>from gensim import corpora, models<\/p>\n<p>dictionary = corpora.Dictionary([words])<\/p>\n<p>corpus = [dictionary.doc2bow(words)]<\/p>\n<p>lda_model = models.LdaModel(corpus, num_topics=5, id2word=dictionary)<\/p>\n<p>for idx, topic in lda_model.print_topics():<\/p>\n<p>    print(f&#39;Topic {idx}: {topic}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\u548c\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u6709\u6548\u5730\u7edf\u8ba1\u6587\u4ef6\u4e2d\u7684\u8bcd\u9891\uff0c\u5e76\u4e14\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u6269\u5c55\u548c\u5e94\u7528\u3002\u8fd9\u4e9b\u5de5\u5177\u548c\u6280\u5de7\u4e0d\u4ec5\u9002\u7528\u4e8e\u7b80\u5355\u7684\u8bcd\u9891\u7edf\u8ba1\uff0c\u8fd8\u53ef\u4ee5\u652f\u6301\u66f4\u590d\u6742\u7684\u6587\u672c\u5206\u6790\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u4ee5\u8fdb\u884c\u8bcd\u9891\u7edf\u8ba1\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>open()<\/code>\u51fd\u6570\u6765\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u3002\u8bfb\u53d6\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>read()<\/code>\u65b9\u6cd5\u83b7\u53d6\u6587\u4ef6\u7684\u6240\u6709\u6587\u672c\uff0c\u6216\u8005\u4f7f\u7528<code>readlines()<\/code>\u9010\u884c\u8bfb\u53d6\u3002\u63a5\u4e0b\u6765\uff0c\u5229\u7528\u5b57\u7b26\u4e32\u7684<code>split()<\/code>\u65b9\u6cd5\u5c06\u6587\u672c\u5206\u5272\u6210\u5355\u8bcd\u5217\u8868\uff0c\u4fbf\u4e8e\u540e\u7eed\u7684\u8bcd\u9891\u7edf\u8ba1\u3002<\/p>\n<p><strong>\u54ea\u4e9bPython\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u66f4\u9ad8\u6548\u5730\u8fdb\u884c\u8bcd\u9891\u7edf\u8ba1\uff1f<\/strong><br \/>Python\u6709\u591a\u4e2a\u5f3a\u5927\u7684\u5e93\u53ef\u4ee5\u5e2e\u52a9\u8fdb\u884c\u8bcd\u9891\u7edf\u8ba1\u3002\u5176\u4e2d\uff0c<code>collections<\/code>\u6a21\u5757\u4e2d\u7684<code>Counter<\/code>\u7c7b\u975e\u5e38\u9002\u5408\u7528\u6765\u5feb\u901f\u7edf\u8ba1\u5355\u8bcd\u51fa\u73b0\u7684\u9891\u7387\u3002\u6b64\u5916\uff0c<code>nltk<\/code>\u548c<code>pandas<\/code>\u5e93\u4e5f\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6587\u672c\u5904\u7406\u529f\u80fd\uff0c\u80fd\u591f\u5bf9\u6587\u672c\u8fdb\u884c\u66f4\u590d\u6742\u7684\u5206\u6790\u548c\u5904\u7406\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u6587\u4ef6\u4e2d\u7684\u6807\u70b9\u7b26\u53f7\u548c\u5927\u5c0f\u5199\u4ee5\u786e\u4fdd\u8bcd\u9891\u7edf\u8ba1\u7684\u51c6\u786e\u6027\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u8bcd\u9891\u7edf\u8ba1\u65f6\uff0c\u5efa\u8bae\u5c06\u6587\u672c\u5168\u90e8\u8f6c\u6362\u4e3a\u5c0f\u5199\uff0c\u4ee5\u907f\u514d\u540c\u4e00\u5355\u8bcd\u56e0\u5927\u5c0f\u5199\u4e0d\u540c\u800c\u88ab\u89c6\u4e3a\u4e0d\u540c\u7684\u8bcd\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6216\u8005\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u53bb\u9664\u6807\u70b9\u7b26\u53f7\uff0c\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u7edf\u8ba1\u7684\u51c6\u786e\u6027\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>re.sub()<\/code>\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u6e05\u7406\u6587\u672c\u4e2d\u7684\u6807\u70b9\u7b26\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7edf\u8ba1\u6587\u4ef6\u4e2d\u7684\u8bcd\u9891\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u63d0\u4f9b\u7684\u591a\u79cd\u5de5\u5177\u548c\u5e93\uff0c\u5982collections\u6a21\u5757\u4e2d\u7684Counter\u7c7b [&hellip;]","protected":false},"author":3,"featured_media":995321,"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\/995307"}],"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=995307"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995307\/revisions"}],"predecessor-version":[{"id":995323,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995307\/revisions\/995323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/995321"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=995307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=995307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=995307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}