{"id":1152217,"date":"2025-01-13T17:23:04","date_gmt":"2025-01-13T09:23:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1152217.html"},"modified":"2025-01-13T17:23:08","modified_gmt":"2025-01-13T09:23:08","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%ae%e5%8c%b9%e9%85%8d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1152217.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u914d\u7f6e\u5339\u914d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25182255\/397d1626-b475-45ba-be74-4bc71b766722.webp\" alt=\"python\u4e2d\u5982\u4f55\u914d\u7f6e\u5339\u914d\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u914d\u7f6e\u5339\u914d\u7684\u65b9\u6cd5\u53ef\u4ee5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec<strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u914d\u7f6e\u6587\u4ef6\u89e3\u6790\u5668<\/strong>\u7b49\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5176\u4e2d\u6700\u5e38\u7528\u4e14\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u901a\u8fc7\u5b9a\u4e49\u6a21\u5f0f\u6765\u5339\u914d\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5339\u914d\uff0c\u540c\u65f6\u8fd8\u4f1a\u6d89\u53ca\u5230\u4e00\u4e9b\u5176\u4ed6\u7684\u914d\u7f6e\u5339\u914d\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\uff08Regular Expression\uff0c\u7b80\u79f0regex\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u5339\u914d\u5b57\u7b26\u4e32\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u5728Python\u4e2d\u901a\u8fc7<code>re<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u3002\u4e0b\u9762\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4e00\u4e9b\u57fa\u672c\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<p><h2>1\u3001\u5bfc\u5165\u6a21\u5757<\/h2>\n<\/p>\n<p><p>\u8981\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165<code>re<\/code>\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u57fa\u672c\u5339\u914d<\/h2>\n<\/p>\n<p><p>\u6700\u57fa\u672c\u7684\u5339\u914d\u53ef\u4ee5\u4f7f\u7528<code>re.match()<\/code>\u548c<code>re.search()<\/code>\u51fd\u6570\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong><code>re.match()<\/code><\/strong> \u4ece\u5b57\u7b26\u4e32\u7684\u5f00\u5934\u5339\u914d\uff0c\u5982\u679c\u5f00\u5934\u4e0d\u5339\u914d\u5219\u8fd4\u56deNone\u3002<\/li>\n<li><strong><code>re.search()<\/code><\/strong> \u5728\u5b57\u7b26\u4e32\u4e2d\u641c\u7d22\u7b2c\u4e00\u4e2a\u5339\u914d\u9879\uff0c\u5982\u679c\u627e\u5230\u5219\u8fd4\u56de\u4e00\u4e2a\u5339\u914d\u5bf9\u8c61\uff0c\u5426\u5219\u8fd4\u56deNone\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">pattern = r&#39;\\d+&#39;  # \u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u5b57<\/p>\n<p>string = &quot;The price is 100 dollars&quot;<\/p>\n<p>match = re.search(pattern, string)<\/p>\n<p>if match:<\/p>\n<p>    print(&quot;Matched:&quot;, match.group())<\/p>\n<p>else:<\/p>\n<p>    print(&quot;No match found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>3\u3001\u5339\u914d\u5bf9\u8c61<\/h2>\n<\/p>\n<p><p>\u5339\u914d\u6210\u529f\u540e\uff0c<code>re.search()<\/code>\u6216<code>re.match()<\/code>\u8fd4\u56de\u4e00\u4e2a\u5339\u914d\u5bf9\u8c61\uff0c\u53ef\u4ee5\u4f7f\u7528\u8be5\u5bf9\u8c61\u7684\u65b9\u6cd5\u6765\u63d0\u53d6\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong><code>.group()<\/code><\/strong> \u8fd4\u56de\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32<\/li>\n<li><strong><code>.start()<\/code><\/strong> \u548c <strong><code>.end()<\/code><\/strong> \u8fd4\u56de\u5339\u914d\u5b50\u5b57\u7b26\u4e32\u7684\u8d77\u59cb\u548c\u7ed3\u675f\u4f4d\u7f6e<\/li>\n<li><strong><code>.span()<\/code><\/strong> \u8fd4\u56de\u5339\u914d\u5b50\u5b57\u7b26\u4e32\u7684\u8303\u56f4<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">match = re.search(r&#39;(\\d+)&#39;, string)<\/p>\n<p>if match:<\/p>\n<p>    print(&quot;Matched:&quot;, match.group())<\/p>\n<p>    print(&quot;Start:&quot;, match.start())<\/p>\n<p>    print(&quot;End:&quot;, match.end())<\/p>\n<p>    print(&quot;Span:&quot;, match.span())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>4\u3001\u66ff\u6362\u548c\u5206\u5272<\/h2>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u8fd8\u53ef\u4ee5\u7528\u4e8e\u66ff\u6362\u548c\u5206\u5272\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong><code>re.sub()<\/code><\/strong> \u7528\u4e8e\u66ff\u6362\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32<\/li>\n<li><strong><code>re.split()<\/code><\/strong> \u7528\u4e8e\u5206\u5272\u5b57\u7b26\u4e32<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\"># \u66ff\u6362\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32<\/p>\n<p>replaced_string = re.sub(r&#39;\\d+&#39;, &#39;###&#39;, string)<\/p>\n<p>print(&quot;Replaced String:&quot;, replaced_string)<\/p>\n<h2><strong>\u5206\u5272\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>split_string = re.split(r&#39;\\s+&#39;, string)<\/p>\n<p>print(&quot;Split String:&quot;, split_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>5\u3001\u7f16\u8bd1\u6b63\u5219\u8868\u8fbe\u5f0f<\/h2>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u6027\u80fd\uff0c\u53ef\u4ee5\u5c06\u6b63\u5219\u8868\u8fbe\u5f0f\u7f16\u8bd1\u6210\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u5bf9\u8c61\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pattern = re.compile(r&#39;\\d+&#39;)<\/p>\n<p>match = pattern.search(string)<\/p>\n<p>if match:<\/p>\n<p>    print(&quot;Matched:&quot;, match.group())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u4e8c\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5<\/strong><\/h2>\n<p><p>\u9664\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\uff0cPython\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u7528\u4e8e\u7b80\u5355\u7684\u6a21\u5f0f\u5339\u914d\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong><code>.find()<\/code><\/strong> \u8fd4\u56de\u5b50\u5b57\u7b26\u4e32\u7684\u6700\u4f4e\u7d22\u5f15\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u5219\u8fd4\u56de-1<\/li>\n<li><strong><code>.startswith()<\/code><\/strong> \u548c <strong><code>.endswith()<\/code><\/strong> \u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u4ee5\u6307\u5b9a\u5b50\u5b57\u7b26\u4e32\u5f00\u5934\u6216\u7ed3\u5c3e<\/li>\n<li><strong><code>.replace()<\/code><\/strong> \u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u5b50\u5b57\u7b26\u4e32<\/li>\n<li><strong><code>.split()<\/code><\/strong> \u5206\u5272\u5b57\u7b26\u4e32<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">string = &quot;The price is 100 dollars&quot;<\/p>\n<p>if string.startswith(&quot;The&quot;):<\/p>\n<p>    print(&quot;String starts with &#39;The&#39;&quot;)<\/p>\n<p>if &quot;price&quot; in string:<\/p>\n<p>    print(&quot;String cont<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns &#39;price&#39;&quot;)<\/p>\n<p>replaced_string = string.replace(&quot;100&quot;, &quot;###&quot;)<\/p>\n<p>print(&quot;Replaced String:&quot;, replaced_string)<\/p>\n<p>split_string = string.split(&quot; &quot;)<\/p>\n<p>print(&quot;Split String:&quot;, split_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u4e09\u3001\u914d\u7f6e\u6587\u4ef6\u89e3\u6790\u5668<\/strong><\/h2>\n<p><p>Python\u4e2d\u7684<code>configparser<\/code>\u6a21\u5757\u53ef\u4ee5\u7528\u4e8e\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\u3002\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u91c7\u7528INI\u683c\u5f0f\uff0c\u5305\u542b\u591a\u4e2a\u90e8\u5206\u548c\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u4f8b\u5982<code>config.ini<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code>[General]<\/p>\n<p>app_name = MyApp<\/p>\n<p>version = 1.0<\/p>\n<p>[User]<\/p>\n<p>username = admin<\/p>\n<p>password = secret<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528<code>configparser<\/code>\u6a21\u5757\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import configparser<\/p>\n<p>config = configparser.ConfigParser()<\/p>\n<p>config.read(&#39;config.ini&#39;)<\/p>\n<p>app_name = config[&#39;General&#39;][&#39;app_name&#39;]<\/p>\n<p>version = config[&#39;General&#39;][&#39;version&#39;]<\/p>\n<p>username = config[&#39;User&#39;][&#39;username&#39;]<\/p>\n<p>password = config[&#39;User&#39;][&#39;password&#39;]<\/p>\n<p>print(&quot;App Name:&quot;, app_name)<\/p>\n<p>print(&quot;Version:&quot;, version)<\/p>\n<p>print(&quot;Username:&quot;, username)<\/p>\n<p>print(&quot;Password:&quot;, password)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u5199\u5165\u914d\u7f6e\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>configparser<\/code>\u6a21\u5757\u5199\u5165\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">config[&#39;General&#39;][&#39;version&#39;] = &#39;2.0&#39;<\/p>\n<p>with open(&#39;config.ini&#39;, &#39;w&#39;) as configfile:<\/p>\n<p>    config.write(configfile)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u56db\u3001\u603b\u7ed3<\/strong><\/h2>\n<p><p>\u5728Python\u4e2d\uff0c\u914d\u7f6e\u5339\u914d\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\uff0c\u5176\u4e2d\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u6700\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u3002\u5b57\u7b26\u4e32\u65b9\u6cd5\u9002\u5408\u7b80\u5355\u7684\u5339\u914d\u548c\u66ff\u6362\u64cd\u4f5c\uff0c\u800c<code>configparser<\/code>\u6a21\u5757\u5219\u9002\u7528\u4e8e\u8bfb\u53d6\u548c\u5199\u5165\u914d\u7f6e\u6587\u4ef6\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u6765\u8fdb\u884c\u914d\u7f6e\u5339\u914d\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u8bbe\u7f6e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u3002\u9996\u5148\uff0c\u5bfc\u5165<code>re<\/code>\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>re.match()<\/code>\u6216<code>re.search()<\/code>\u51fd\u6570\u6765\u8fdb\u884c\u5339\u914d\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6a21\u5f0f\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u5b9a\u4e49\uff0c\u5e76\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u6807\u5fd7\u6765\u589e\u5f3a\u5339\u914d\u80fd\u529b\uff0c\u5982<code>re.IGNORECASE<\/code>\u7528\u4e8e\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u5339\u914d\u3002\u5177\u4f53\u793a\u4f8b\u5305\u62ec\uff1a<\/p>\n<pre><code class=\"language-python\">import re\n\npattern = r&#39;\\d+&#39;  # \u5339\u914d\u6570\u5b57\ntext = &#39;There are 123 apples&#39;\nmatch = re.search(pattern, text)\n\nif match:\n    print(f&quot;\u627e\u5230\u5339\u914d: {match.group()}&quot;)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5339\u914d\uff1f<\/strong><br \/>\u5904\u7406\u590d\u6742\u5b57\u7b26\u4e32\u5339\u914d\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5206\u7ec4\u548c\u96f6\u5bbd\u65ad\u8a00\u7b49\u9ad8\u7ea7\u6b63\u5219\u8868\u8fbe\u5f0f\u7279\u6027\u3002\u5206\u7ec4\u901a\u8fc7\u5706\u62ec\u53f7\u5b9e\u73b0\uff0c\u53ef\u4ee5\u6355\u83b7\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\u3002\u96f6\u5bbd\u65ad\u8a00\u5219\u7528\u4e8e\u5339\u914d\u67d0\u4e9b\u6761\u4ef6\u4e0b\u7684\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u6d88\u8017\u5b57\u7b26\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5305\u542b\u5206\u7ec4\u548c\u96f6\u5bbd\u65ad\u8a00\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">pattern = r&#39;(?P&lt;word&gt;\\w+)@(?P&lt;domain&gt;\\w+\\.\\w+)&#39;\ntext = &#39;Contact me at example@gmail.com&#39;\nmatch = re.search(pattern, text)\n\nif match:\n    print(f&quot;\u7528\u6237: {match.group(&#39;word&#39;)}, \u57df\u540d: {match.group(&#39;domain&#39;)}&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u4f18\u5316Python\u4e2d\u7684\u5339\u914d\u6027\u80fd\uff1f<\/strong><br \/>\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u6216\u590d\u6742\u6a21\u5f0f\u65f6\uff0c\u4f18\u5316\u5339\u914d\u6027\u80fd\u975e\u5e38\u5173\u952e\u3002\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u7f16\u8bd1\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u901a\u8fc7<code>re.compile()<\/code>\u51fd\u6570\u5c06\u6a21\u5f0f\u7f16\u8bd1\u4e3a\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u5bf9\u8c61\uff0c\u4ece\u800c\u63d0\u9ad8\u5339\u914d\u6548\u7387\u3002\u6b64\u5916\uff0c\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u8d2a\u5a6a\u6a21\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u975e\u8d2a\u5a6a\u6a21\u5f0f\u6765\u7f29\u5c0f\u5339\u914d\u8303\u56f4\uff0c\u51cf\u5c11\u8ba1\u7b97\u65f6\u95f4\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">pattern = re.compile(r&#39;&lt;.*?&gt;&#39;)  # \u4f7f\u7528\u7f16\u8bd1\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\ntext = &#39;&lt;div&gt;Content&lt;\/div&gt;&#39;\n\nmatches = pattern.findall(text)\nprint(matches)  # \u8f93\u51fa: [&#39;&lt;div&gt;&#39;, &#39;&lt;\/div&gt;&#39;]\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u914d\u7f6e\u5339\u914d\u7684\u65b9\u6cd5\u53ef\u4ee5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u914d\u7f6e\u6587\u4ef6\u89e3\u6790\u5668\u7b49\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5176\u4e2d [&hellip;]","protected":false},"author":3,"featured_media":1152224,"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\/1152217"}],"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=1152217"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1152217\/revisions"}],"predecessor-version":[{"id":1152229,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1152217\/revisions\/1152229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1152224"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1152217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1152217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1152217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}