{"id":1088269,"date":"2025-01-08T13:42:43","date_gmt":"2025-01-08T05:42:43","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1088269.html"},"modified":"2025-01-08T13:42:46","modified_gmt":"2025-01-08T05:42:46","slug":"python%e5%a6%82%e4%bd%95%e6%8a%8a%e6%95%b0%e5%ad%97%e6%8f%90%e5%8f%96%e5%87%ba%e6%9d%a5-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1088269.html","title":{"rendered":"python\u5982\u4f55\u628a\u6570\u5b57\u63d0\u53d6\u51fa\u6765"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200815\/a51f8b9e-e00a-488a-b019-b5be594b283c.webp\" alt=\"python\u5982\u4f55\u628a\u6570\u5b57\u63d0\u53d6\u51fa\u6765\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u63d0\u53d6\u6570\u5b57\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5217\u8868\u89e3\u6790\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3002<\/strong>\u5176\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u63d0\u53d6\u6570\u5b57\u6700\u7075\u6d3b\u548c\u5f3a\u5927\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u80fd\u591f\u5904\u7406\u5404\u79cd\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u4e3e\u4f8b\u8bf4\u660e\u5982\u4f55\u5728\u4e0d\u540c\u60c5\u51b5\u4e0b\u4f7f\u7528\u5b83\u4eec\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u6570\u5b57<\/h2>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u5339\u914d\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\u3002Python\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<p><h3>1. \u4f7f\u7528re.findall()<\/h3>\n<\/p>\n<p><p><code>re.findall()<\/code>\u51fd\u6570\u8fd4\u56de\u6240\u6709\u975e\u91cd\u53e0\u5339\u914d\u7684\u5217\u8868\u3002\u6211\u4eec\u53ef\u4ee5\u7528\u5b83\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;The prices are 45.50, 100, and 200 dollars.&quot;<\/p>\n<p>numbers = re.findall(r&#39;\\d+\\.?\\d*&#39;, text)<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f<code>r&#39;\\d+\\.?\\d*&#39;<\/code>\u7528\u4e8e\u5339\u914d\u6574\u6570\u548c\u5c0f\u6570\u3002<code>\\d+<\/code>\u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u5b57\uff0c<code>\\.?<\/code>\u5339\u914d\u96f6\u4e2a\u6216\u4e00\u4e2a\u5c0f\u6570\u70b9\uff0c<code>\\d*<\/code>\u5339\u914d\u96f6\u4e2a\u6216\u591a\u4e2a\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528re.search()\u548cre.group()<\/h3>\n<\/p>\n<p><p><code>re.search()<\/code>\u51fd\u6570\u7528\u4e8e\u641c\u7d22\u5b57\u7b26\u4e32\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5339\u914d\u5bf9\u8c61\u3002\u6211\u4eec\u53ef\u4ee5\u7528<code>group()<\/code>\u65b9\u6cd5\u63d0\u53d6\u5339\u914d\u7684\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;The price is 45.50 dollars.&quot;<\/p>\n<p>match = re.search(r&#39;\\d+\\.?\\d*&#39;, text)<\/p>\n<p>if match:<\/p>\n<p>    number = match.group()<\/p>\n<p>    print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>re.search()<\/code>\u627e\u5230\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\uff0c\u5e76\u7528<code>group()<\/code>\u65b9\u6cd5\u63d0\u53d6\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u63d0\u53d6\u6570\u5b57<\/h2>\n<\/p>\n<p><p>Python\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u7528\u6765\u63d0\u53d6\u6570\u5b57\uff0c\u7279\u522b\u662f\u5728\u7b80\u5355\u7684\u60c5\u51b5\u4e0b\u3002<\/p>\n<\/p>\n<p><h3>1. \u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>isdigit()<\/code>\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>isdigit()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u68c0\u67e5\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u662f\u5426\u4e3a\u6570\u5b57\u3002\u6211\u4eec\u53ef\u4ee5\u904d\u5386\u5b57\u7b26\u4e32\uff0c\u5e76\u5c06\u6570\u5b57\u5b57\u7b26\u63d0\u53d6\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;The price is 4550 dollars.&quot;<\/p>\n<p>numbers = &#39;&#39;.join([char for char in text if char.isdigit()])<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u89e3\u6790\u7528\u4e8e\u904d\u5386\u5b57\u7b26\u4e32\uff0c\u5e76\u5c06\u6240\u6709\u6570\u5b57\u5b57\u7b26\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>2. \u4f7f\u7528<code>split()<\/code>\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>split()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5206\u5272\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u68c0\u67e5\u6bcf\u4e2a\u90e8\u5206\u662f\u5426\u4e3a\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;The price is 45.50 dollars.&quot;<\/p>\n<p>parts = text.split()<\/p>\n<p>numbers = [part for part in parts if part.replace(&#39;.&#39;, &#39;&#39;, 1).isdigit()]<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528<code>split()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u5355\u8bcd\u5217\u8868\uff0c\u7136\u540e\u68c0\u67e5\u6bcf\u4e2a\u90e8\u5206\u662f\u5426\u4e3a\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u5217\u8868\u89e3\u6790\u63d0\u53d6\u6570\u5b57<\/h2>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u63d0\u53d6\u6570\u5b57\u7684\u53e6\u4e00\u79cd\u7b80\u6d01\u65b9\u6cd5\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u7b80\u5355\u5b57\u7b26\u4e32\u65f6\u3002<\/p>\n<\/p>\n<p><h3>1. \u63d0\u53d6\u6574\u6570<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;There are 3 cats and 4 dogs.&quot;<\/p>\n<p>numbers = [int(word) for word in text.split() if word.isdigit()]<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u89e3\u6790\u7528\u4e8e\u68c0\u67e5\u6bcf\u4e2a\u5355\u8bcd\u662f\u5426\u4e3a\u6570\u5b57\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h3>2. \u63d0\u53d6\u6d6e\u70b9\u6570<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;The prices are 45.50, 100, and 200 dollars.&quot;<\/p>\n<p>numbers = [float(word) for word in re.findall(r&#39;\\d+\\.?\\d*&#39;, text)]<\/p>\n<p>print(numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u627e\u5230\u6240\u6709\u6570\u5b57\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u63d0\u53d6\u6570\u5b57\u7684\u5b9e\u9645\u5e94\u7528<\/h2>\n<\/p>\n<p><h3>1. \u4ece\u6587\u4ef6\u4e2d\u63d0\u53d6\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u4ece\u6587\u4ef6\u4e2d\u63d0\u53d6\u6570\u5b57\u3002\u4f8b\u5982\uff0c\u4ece\u4e00\u4e2a\u5305\u542b\u4ef7\u683c\u5217\u8868\u7684\u6587\u672c\u6587\u4ef6\u4e2d\u63d0\u53d6\u6240\u6709\u4ef7\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>with open(&#39;prices.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    text = file.read()<\/p>\n<p>numbers = re.findall(r&#39;\\d+\\.?\\d*&#39;, text)<\/p>\n<p>prices = [float(num) for num in numbers]<\/p>\n<p>print(prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u4ece\u7f51\u9875\u5185\u5bb9\u4e2d\u63d0\u53d6\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>requests<\/code>\u548c<code>BeautifulSoup<\/code>\u5e93\u4ece\u7f51\u9875\u4e2d\u63d0\u53d6\u6570\u5b57\u3002\u4f8b\u5982\uff0c\u4ece\u4e00\u4e2a\u5305\u542b\u5546\u54c1\u4ef7\u683c\u7684\u7f51\u9875\u4e2d\u63d0\u53d6\u6240\u6709\u4ef7\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>url = &#39;http:\/\/example.com\/products&#39;<\/p>\n<p>response = requests.get(url)<\/p>\n<p>soup = BeautifulSoup(response.content, &#39;html.parser&#39;)<\/p>\n<p>text = soup.get_text()<\/p>\n<p>numbers = re.findall(r&#39;\\d+\\.?\\d*&#39;, text)<\/p>\n<p>prices = [float(num) for num in numbers]<\/p>\n<p>print(prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3. \u4eceJSON\u6570\u636e\u4e2d\u63d0\u53d6\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u5f53\u5904\u7406JSON\u6570\u636e\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>json<\/code>\u6a21\u5757\u89e3\u6790\u6570\u636e\uff0c\u5e76\u63d0\u53d6\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<p>data = &#39;{&quot;products&quot;: [{&quot;price&quot;: 45.50}, {&quot;price&quot;: 100}, {&quot;price&quot;: 200}]}&#39;<\/p>\n<p>parsed_data = json.loads(data)<\/p>\n<p>prices = [item[&#39;price&#39;] for item in parsed_data[&#39;products&#39;]]<\/p>\n<p>print(prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4. \u4eceCSV\u6587\u4ef6\u4e2d\u63d0\u53d6\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u5904\u7406CSV\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>csv<\/code>\u6a21\u5757\u8bfb\u53d6\u6587\u4ef6\uff0c\u5e76\u63d0\u53d6\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>with open(&#39;prices.csv&#39;, &#39;r&#39;) as file:<\/p>\n<p>    reader = csv.reader(file)<\/p>\n<p>    prices = [float(row[1]) for row in reader if row[1].replace(&#39;.&#39;, &#39;&#39;, 1).isdigit()]<\/p>\n<p>print(prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u63d0\u53d6\u6570\u5b57\u662f\u6570\u636e\u5904\u7406\u4e2d\u7684\u5e38\u89c1\u4efb\u52a1\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u63d0\u53d6\u6570\u5b57\uff0c\u5305\u62ec\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u5217\u8868\u89e3\u6790\u3002<strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\u662f\u6700\u5f3a\u5927\u548c\u7075\u6d3b\u7684\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u3002<strong>\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u5217\u8868\u89e3\u6790<\/strong>\u9002\u5408\u5904\u7406\u7b80\u5355\u5b57\u7b26\u4e32\u3002\u6839\u636e\u5177\u4f53\u5e94\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u53d6\u6240\u9700\u7684\u6570\u5b57\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u63d0\u53d6\u6570\u5b57\u53ef\u4ee5\u7528\u4e8e\u4ece\u6587\u4ef6\u3001\u7f51\u9875\u3001JSON\u6570\u636e\u548cCSV\u6587\u4ef6\u4e2d\u83b7\u53d6\u6570\u636e\u3002\u8fd9\u4e9b\u65b9\u6cd5\u548c\u6280\u5de7\u4e0d\u4ec5\u9002\u7528\u4e8e\u63d0\u53d6\u6570\u5b57\uff0c\u8fd8\u53ef\u4ee5\u6269\u5c55\u5230\u5176\u4ed6\u6570\u636e\u5904\u7406\u4efb\u52a1\u4e2d\u3002\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\uff0c\u5c06\u6709\u52a9\u4e8e\u63d0\u9ad8\u6570\u636e\u5904\u7406\u6548\u7387\u548c\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u3002\u901a\u8fc7<code>re<\/code>\u6a21\u5757\u7684<code>findall()<\/code>\u51fd\u6570\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u627e\u5230\u6240\u6709\u6570\u5b57\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>re.findall(r&#39;\\d+&#39;, your_string)<\/code>\u53ef\u4ee5\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u6570\u5b57\u7684\u5217\u8868\u3002<\/p>\n<p><strong>Python\u4e2d\u63d0\u53d6\u6570\u5b57\u540e\u5982\u4f55\u8fdb\u884c\u8fd0\u7b97\uff1f<\/strong><br \/>\u63d0\u53d6\u6570\u5b57\u540e\uff0c\u60a8\u53ef\u4ee5\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u8ba1\u7b97\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>int()<\/code>\u6216<code>float()<\/code>\u51fd\u6570\u5c06\u63d0\u53d6\u7684\u5b57\u7b26\u4e32\u6570\u5b57\u8f6c\u6362\u4e3a\u76f8\u5e94\u7684\u6570\u636e\u7c7b\u578b\u3002\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u6267\u884c\u52a0\u3001\u51cf\u3001\u4e58\u3001\u9664\u7b49\u6570\u5b66\u8fd0\u7b97\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u63d0\u53d6\u5230\u7684\u8d1f\u6570\u6216\u5c0f\u6570\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u63d0\u53d6\u8d1f\u6570\u6216\u5c0f\u6570\uff0c\u53ef\u4ee5\u8c03\u6574\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>re.findall(r&#39;-?\\d+\\.?\\d*&#39;, your_string)<\/code>\u53ef\u4ee5\u63d0\u53d6\u5305\u62ec\u8d1f\u53f7\u548c\u5c0f\u6570\u70b9\u7684\u6570\u5b57\u3002\u8fd9\u6837\uff0c\u60a8\u53ef\u4ee5\u786e\u4fdd\u5728\u63d0\u53d6\u6570\u636e\u65f6\u4e0d\u4f1a\u9057\u6f0f\u4efb\u4f55\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u63d0\u53d6\u6570\u5b57\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5217\u8868\u89e3\u6790\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3002\u5176\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u63d0 [&hellip;]","protected":false},"author":3,"featured_media":1088280,"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\/1088269"}],"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=1088269"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1088269\/revisions"}],"predecessor-version":[{"id":1088281,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1088269\/revisions\/1088281"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1088280"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1088269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1088269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1088269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}