{"id":940339,"date":"2024-12-26T20:57:54","date_gmt":"2024-12-26T12:57:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/940339.html"},"modified":"2024-12-26T20:57:56","modified_gmt":"2024-12-26T12:57:56","slug":"python-%e4%b8%ad%e5%a6%82%e4%bd%95%e5%8c%b9%e9%85%8d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/940339.html","title":{"rendered":"python \u4e2d\u5982\u4f55\u5339\u914d."},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074954\/ed0fc4e6-ac1b-4a19-8d04-a4b705077560.webp\" alt=\"python \u4e2d\u5982\u4f55\u5339\u914d.\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u5339\u914d\u70b9\uff08.\uff09\u5b57\u7b26\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff08regex\uff09\u6765\u5b9e\u73b0\u3002<strong>\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\uff0c\u70b9\u5b57\u7b26\u5177\u6709\u7279\u6b8a\u542b\u4e49\uff0c\u8868\u793a\u5339\u914d\u4efb\u610f\u5355\u4e2a\u5b57\u7b26<\/strong>\u3002\u5982\u679c\u60f3\u8981\u5339\u914d\u4e00\u4e2a\u5b9e\u9645\u7684\u70b9\u5b57\u7b26\uff0c\u5fc5\u987b\u5bf9\u5176\u8fdb\u884c\u8f6c\u4e49\uff0c\u5373\u5728\u70b9\u5b57\u7b26\u524d\u52a0\u4e0a\u53cd\u659c\u6760\uff08\\\uff09\u3002Python\u63d0\u4f9b\u4e86<code>re<\/code>\u6a21\u5757\u7528\u4e8e\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4e3a\u4e86\u8be6\u7ec6\u8bf4\u660e\u5982\u4f55\u5728Python\u4e2d\u5339\u914d\u70b9\u5b57\u7b26\uff0c\u4e0b\u6587\u5c06\u4ecb\u7ecd\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u57fa\u7840\u77e5\u8bc6\u3001\u5982\u4f55\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u5339\u914d\u70b9\u5b57\u7b26\uff0c\u4ee5\u53ca\u5e94\u7528\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u57fa\u7840<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u7528\u4e8e\u63cf\u8ff0\u548c\u5339\u914d\u5b57\u7b26\u4e32\u6a21\u5f0f\u7684\u5f3a\u5927\u5de5\u5177\u3002\u5728Python\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u901a\u8fc7<code>re<\/code>\u6a21\u5757\u5b9e\u73b0\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u6709\u8bb8\u591a\u7279\u6b8a\u5b57\u7b26\uff0c\u70b9\uff08.\uff09\u5c31\u662f\u5176\u4e2d\u4e4b\u4e00\uff0c\u901a\u5e38\u7528\u6765\u5339\u914d\u9664\u6362\u884c\u7b26\u5916\u7684\u4efb\u4f55\u5355\u4e2a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u7279\u6b8a\u5b57\u7b26<\/h4>\n<\/p>\n<ul>\n<li><strong>\u70b9\uff08.\uff09<\/strong>\uff1a\u5339\u914d\u9664\u6362\u884c\u7b26\u5916\u7684\u4efb\u610f\u5355\u4e2a\u5b57\u7b26\u3002<\/li>\n<li><strong>\u661f\u53f7\uff08*\uff09<\/strong>\uff1a\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b260\u6b21\u6216\u591a\u6b21\u3002<\/li>\n<li><strong>\u52a0\u53f7\uff08+\uff09<\/strong>\uff1a\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b261\u6b21\u6216\u591a\u6b21\u3002<\/li>\n<li><strong>\u95ee\u53f7\uff08?\uff09<\/strong>\uff1a\u5339\u914d\u524d\u4e00\u4e2a\u5b57\u7b260\u6b21\u62161\u6b21\u3002<\/li>\n<li><strong>\u53cd\u659c\u6760\uff08\\\uff09<\/strong>\uff1a\u7528\u4e8e\u8f6c\u4e49\u5b57\u7b26\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u8f6c\u4e49\u5b57\u7b26<\/h4>\n<\/p>\n<p><p>\u7531\u4e8e\u70b9\uff08.\uff09\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u662f\u4e00\u4e2a\u7279\u6b8a\u5b57\u7b26\uff0c\u56e0\u6b64\u5982\u679c\u60f3\u8981\u5339\u914d\u5b9e\u9645\u7684\u70b9\u5b57\u7b26\uff0c\u9700\u8981\u5728\u70b9\u524d\u52a0\u4e0a\u53cd\u659c\u6760\uff08\\\uff09\u8fdb\u884c\u8f6c\u4e49\u3002\u4f8b\u5982\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f<code>\\\\.<\/code>\u7528\u4e8e\u5339\u914d\u4e00\u4e2a\u5b9e\u9645\u7684\u70b9\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528re\u6a21\u5757\u5339\u914d\u70b9\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>Python\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662f<code>re.match()<\/code>\u3001<code>re.search()<\/code>\u548c<code>re.findall()<\/code>\u3002<\/p>\n<\/p>\n<p><h4>1\u3001re.match()<\/h4>\n<\/p>\n<p><p><code>re.match()<\/code>\u51fd\u6570\u5c1d\u8bd5\u4ece\u5b57\u7b26\u4e32\u7684\u8d77\u59cb\u4f4d\u7f6e\u5339\u914d\u4e00\u4e2a\u6a21\u5f0f\uff0c\u5982\u679c\u5339\u914d\u6210\u529f\uff0c\u5219\u8fd4\u56de\u4e00\u4e2a\u5339\u914d\u5bf9\u8c61\uff0c\u5426\u5219\u8fd4\u56de<code>None<\/code>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>pattern = r&#39;\\.&#39;<\/p>\n<p>string = &#39;file.txt&#39;<\/p>\n<p>match = re.match(pattern, string)<\/p>\n<p>if match:<\/p>\n<p>    print(&quot;Matched&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Not matched&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>re.match()<\/code>\u5c1d\u8bd5\u4ece\u5b57\u7b26\u4e32<code>file.txt<\/code>\u7684\u8d77\u59cb\u4f4d\u7f6e\u5339\u914d\u70b9\u5b57\u7b26\uff0c\u4f46\u7531\u4e8e\u70b9\u4e0d\u662f\u5b57\u7b26\u4e32\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\uff0c\u56e0\u6b64\u4e0d\u4f1a\u5339\u914d\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h4>2\u3001re.search()<\/h4>\n<\/p>\n<p><p><code>re.search()<\/code>\u51fd\u6570\u626b\u63cf\u6574\u4e2a\u5b57\u7b26\u4e32\u5e76\u8fd4\u56de\u7b2c\u4e00\u4e2a\u6210\u529f\u5339\u914d\u7684\u5339\u914d\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>pattern = r&#39;\\.&#39;<\/p>\n<p>string = &#39;file.txt&#39;<\/p>\n<p>match = re.search(pattern, string)<\/p>\n<p>if match:<\/p>\n<p>    print(&quot;Matched&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Not matched&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6b64\u4f8b\u4e2d\uff0c<code>re.search()<\/code>\u4f1a\u626b\u63cf\u6574\u4e2a\u5b57\u7b26\u4e32<code>file.txt<\/code>\u5e76\u5339\u914d\u5230\u7b2c\u4e00\u4e2a\u70b9\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>3\u3001re.findall()<\/h4>\n<\/p>\n<p><p><code>re.findall()<\/code>\u51fd\u6570\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u4e0e\u6a21\u5f0f\u5339\u914d\u7684\u975e\u91cd\u53e0\u9879\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>pattern = r&#39;\\.&#39;<\/p>\n<p>string = &#39;file.name.with.many.dots.txt&#39;<\/p>\n<p>matches = re.findall(pattern, string)<\/p>\n<p>print(f&quot;Number of dots: {len(matches)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u4ee3\u7801\u5c06\u8f93\u51fa\u5b57\u7b26\u4e32\u4e2d\u70b9\u5b57\u7b26\u7684\u603b\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5e94\u7528\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><h4>1\u3001\u6587\u4ef6\u6269\u5c55\u540d\u63d0\u53d6<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6587\u4ef6\u8def\u5f84\u65f6\uff0c\u5e38\u5e38\u9700\u8981\u63d0\u53d6\u6587\u4ef6\u7684\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def get_extension(filename):<\/p>\n<p>    pattern = r&#39;\\.([^.]+)$&#39;<\/p>\n<p>    match = re.search(pattern, filename)<\/p>\n<p>    if match:<\/p>\n<p>        return match.group(1)<\/p>\n<p>    return None<\/p>\n<p>filename = &#39;document.report.pdf&#39;<\/p>\n<p>extension = get_extension(filename)<\/p>\n<p>print(f&quot;File extension: {extension}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u51fd\u6570\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6587\u4ef6\u540d\u4e2d\u6700\u540e\u4e00\u4e2a\u70b9\u4e4b\u540e\u7684\u5185\u5bb9\uff0c\u5373\u6587\u4ef6\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><h4>2\u3001IP\u5730\u5740\u9a8c\u8bc1<\/h4>\n<\/p>\n<p><p>\u9a8c\u8bc1\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u6709\u6548\u7684IP\u5730\u5740\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_valid_ip(ip):<\/p>\n<p>    pattern = r&#39;^(\\d{1,3}\\.){3}\\d{1,3}$&#39;<\/p>\n<p>    if re.match(pattern, ip):<\/p>\n<p>        return all(map(lambda x: 0 &lt;= int(x) &lt;= 255, ip.split(&#39;.&#39;)))<\/p>\n<p>    return False<\/p>\n<p>ip = &#39;192.168.1.1&#39;<\/p>\n<p>print(f&quot;Is valid IP: {is_valid_ip(ip)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u4ee3\u7801\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u9a8c\u8bc1IP\u5730\u5740\u683c\u5f0f\uff0c\u5e76\u786e\u4fdd\u6bcf\u4e2a\u6570\u5b57\u6bb5\u57280\u5230255\u4e4b\u95f4\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u5339\u914d\u7f51\u5740\u4e2d\u7684\u57df\u540d<\/h4>\n<\/p>\n<p><p>\u4eceURL\u4e2d\u63d0\u53d6\u57df\u540d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def extract_dom<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n(url):<\/p>\n<p>    pattern = r&#39;https?:\/\/(www\\.)?([^\/]+)&#39;<\/p>\n<p>    match = re.search(pattern, url)<\/p>\n<p>    if match:<\/p>\n<p>        return match.group(2)<\/p>\n<p>    return None<\/p>\n<p>url = &#39;https:\/\/www.example.com\/path\/to\/page&#39;<\/p>\n<p>domain = extract_domain(url)<\/p>\n<p>print(f&quot;Domain: {domain}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u51fd\u6570\u63d0\u53d6\u7ed9\u5b9aURL\u4e2d\u7684\u57df\u540d\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><h4>1\u3001\u5904\u7406\u7279\u6b8a\u5b57\u7b26<\/h4>\n<\/p>\n<p><p>\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\uff0c\u67d0\u4e9b\u5b57\u7b26\u5177\u6709\u7279\u6b8a\u542b\u4e49\uff0c\u56e0\u6b64\u5728\u5339\u914d\u8fd9\u4e9b\u5b57\u7b26\u65f6\u9700\u8981\u8fdb\u884c\u8f6c\u4e49\u3002\u4f8b\u5982\uff0c\u70b9\u5b57\u7b26\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u662f\u4e00\u4e2a\u901a\u914d\u7b26\uff0c\u9700\u8981\u4f7f\u7528\u53cd\u659c\u6760\uff08\\\uff09\u8fdb\u884c\u8f6c\u4e49\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u6027\u80fd<\/h4>\n<\/p>\n<p><p>\u867d\u7136\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u4f46\u590d\u6742\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\u3002\u5728\u5904\u7406\u5927\u6587\u672c\u6216\u9700\u8981\u8fdb\u884c\u5927\u91cf\u5339\u914d\u65f6\uff0c\u5e94\u8c28\u614e\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u8c03\u8bd5<\/h4>\n<\/p>\n<p><p>\u7f16\u5199\u548c\u8c03\u8bd5\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u80fd\u4f1a\u6bd4\u8f83\u56f0\u96be\u3002\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5728\u7ebf\u6d4b\u8bd5\u5de5\u5177\u6765\u5e2e\u52a9\u8c03\u8bd5\u548c\u9a8c\u8bc1\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5339\u914d\u70b9\u5b57\u7b26\u65f6\uff0c\u9700\u8981\u7406\u89e3\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u70b9\u5b57\u7b26\u7684\u7279\u6b8a\u542b\u4e49\uff0c\u5e76\u4f7f\u7528\u53cd\u659c\u6760\u8fdb\u884c\u8f6c\u4e49\u3002\u901a\u8fc7<code>re<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u5b57\u7b26\u4e32\u4e2d\u67e5\u627e\u3001\u5339\u914d\u548c\u63d0\u53d6\u70b9\u5b57\u7b26\u53ca\u5176\u76f8\u5173\u5185\u5bb9\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u6a21\u5f0f\u5339\u914d\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u4f46\u5728\u4f7f\u7528\u65f6\u9700\u6ce8\u610f\u5176\u6027\u80fd\u548c\u8c03\u8bd5\u96be\u5ea6\u3002\u901a\u8fc7\u672c\u6587\u7684\u8bb2\u89e3\u548c\u5b9e\u4f8b\uff0c\u76f8\u4fe1\u8bfb\u8005\u80fd\u591f\u66f4\u597d\u5730\u638c\u63e1\u5728Python\u4e2d\u5339\u914d\u70b9\u5b57\u7b26\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\u5982\u4f55\u5339\u914d\u5305\u542b\u70b9\uff08.\uff09\u7684\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u5339\u914d\u5305\u542b\u70b9\u7684\u5b57\u7b26\u4e32\u3002\u70b9\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u901a\u5e38\u8868\u793a\u4efb\u4f55\u5b57\u7b26\uff0c\u56e0\u6b64\u5982\u679c\u60a8\u60f3\u5339\u914d\u5b9e\u9645\u7684\u70b9\u5b57\u7b26\uff0c\u60a8\u9700\u8981\u5728\u70b9\u524d\u52a0\u4e0a\u53cd\u659c\u6760\u8fdb\u884c\u8f6c\u4e49\u3002\u4f8b\u5982\uff0c\u4f7f\u7528`r&#39;.&#39;\u6765\u5339\u914d\u5b57\u7b26\u4e32\u4e2d\u7684\u5b9e\u9645\u70b9\u3002<\/p>\n<p><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u65f6\u5982\u4f55\u5904\u7406\u591a\u79cd\u5b57\u7b26\u7684\u5339\u914d\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u60f3\u8981\u5339\u914d\u591a\u4e2a\u5b57\u7b26\uff0c\u5305\u62ec\u70b9\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u96c6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>[abc.]<\/code>\u53ef\u4ee5\u5339\u914d\u5b57\u6bcda\u3001b\u3001c\u6216\u70b9\u3002\u8fd9\u6837\u53ef\u4ee5\u7075\u6d3b\u5730\u5904\u7406\u5404\u79cd\u5b57\u7b26\u7ec4\u5408\uff0c\u540c\u65f6\u4ecd\u7136\u80fd\u591f\u5339\u914d\u5b9e\u9645\u7684\u70b9\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u6765\u67e5\u627e\u70b9\u7684\u7d22\u5f15\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u6765\u67e5\u627e\u70b9\u7684\u4f4d\u7f6e\u3002\u4f7f\u7528<code>str.find()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u8fd4\u56de\u70b9\u5728\u5b57\u7b26\u4e32\u4e2d\u7b2c\u4e00\u6b21\u51fa\u73b0\u7684\u4f4d\u7f6e\uff0c\u5982\u679c\u6ca1\u6709\u627e\u5230\uff0c\u5219\u8fd4\u56de-1\u3002\u4f8b\u5982\uff0c<code>my_string.find(&#39;.&#39;)<\/code>\u5c06\u8fd4\u56de\u5b57\u7b26\u4e32\u4e2d\u7b2c\u4e00\u4e2a\u70b9\u7684\u7d22\u5f15\u4f4d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5339\u914d\u70b9\uff08.\uff09\u5b57\u7b26\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff08regex\uff09\u6765\u5b9e\u73b0\u3002\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\uff0c\u70b9\u5b57\u7b26\u5177\u6709\u7279\u6b8a\u542b\u4e49 [&hellip;]","protected":false},"author":3,"featured_media":940340,"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\/940339"}],"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=940339"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/940339\/revisions"}],"predecessor-version":[{"id":940341,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/940339\/revisions\/940341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/940340"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=940339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=940339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=940339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}