{"id":1116221,"date":"2025-01-08T18:14:28","date_gmt":"2025-01-08T10:14:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1116221.html"},"modified":"2025-01-08T18:14:31","modified_gmt":"2025-01-08T10:14:31","slug":"python%e5%a6%82%e4%bd%95%e5%88%86%e5%89%b2%e5%a4%9a%e4%b8%aa%e5%ad%97%e7%ac%a6%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1116221.html","title":{"rendered":"python\u5982\u4f55\u5206\u5272\u591a\u4e2a\u5b57\u7b26\u4e32"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25080645\/c94b7135-a4e1-477d-a9e3-a2cec6cfc6f9.webp\" alt=\"python\u5982\u4f55\u5206\u5272\u591a\u4e2a\u5b57\u7b26\u4e32\" \/><\/p>\n<p><p> <strong>Python\u5206\u5272\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528split()\u65b9\u6cd5\u3001\u4f7f\u7528re.split()\u65b9\u6cd5\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5207\u7247\u64cd\u4f5c\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\uff0csplit()\u65b9\u6cd5\u6700\u5e38\u7528\u4e14\u7b80\u5355\uff0cre.split()\u9002\u7528\u4e8e\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\uff0c\u5207\u7247\u64cd\u4f5c\u9002\u7528\u4e8e\u56fa\u5b9a\u4f4d\u7f6e\u7684\u5206\u5272\u3002\u63a8\u8350\u4f7f\u7528split()\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u4e14\u9ad8\u6548\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528split()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0csplit()\u65b9\u6cd5\u662f\u6700\u5e38\u7528\u7684\u5b57\u7b26\u4e32\u5206\u5272\u65b9\u6cd5\u3002\u5b83\u53ef\u4ee5\u57fa\u4e8e\u6307\u5b9a\u7684\u5206\u9694\u7b26\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u591a\u4e2a\u5b50\u5b57\u7b26\u4e32\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0csplit()\u65b9\u6cd5\u4f1a\u6309\u7a7a\u683c\u5206\u5272\u5b57\u7b26\u4e32\uff0c\u4f46\u4f60\u4e5f\u53ef\u4ee5\u6307\u5b9a\u5176\u4ed6\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;apple,orange,banana,grape&quot;<\/p>\n<p>fruits = text.split(&quot;,&quot;)<\/p>\n<p>print(fruits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32<code>text<\/code>\u88ab\u9017\u53f7\u5206\u5272\u6210\u4e86\u4e00\u4e2a\u5217\u8868<code>fruits<\/code>\uff0c\u5176\u4e2d\u5305\u542b\u4e86<code>apple<\/code>\u3001<code>orange<\/code>\u3001<code>banana<\/code>\u548c<code>grape<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528re.split()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u5206\u5272\u9700\u6c42\uff0c\u4f8b\u5982\u57fa\u4e8e\u591a\u4e2a\u4e0d\u540c\u7684\u5206\u9694\u7b26\u8fdb\u884c\u5206\u5272\uff0c\u6216\u8005\u57fa\u4e8e\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5206\u5272\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u4e2d\u7684<code>re.split()<\/code>\u65b9\u6cd5\u3002\u8be5\u65b9\u6cd5\u5141\u8bb8\u4f60\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5b9a\u4e49\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;apple;orange,banana|grape&quot;<\/p>\n<p>fruits = re.split(r&#39;[;,\\|]&#39;, text)<\/p>\n<p>print(fruits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<code>[;,\\|]<\/code>\u5b9a\u4e49\u4e86\u591a\u4e2a\u5206\u9694\u7b26\uff08\u5206\u53f7\u3001\u9017\u53f7\u548c\u7ad6\u7ebf\uff09\uff0c\u5e76\u4f7f\u7528<code>re.split()<\/code>\u65b9\u6cd5\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u5206\u5272\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5207\u7247\u64cd\u4f5c<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u56fa\u5b9a\u4f4d\u7f6e\u7684\u5b57\u7b26\u4e32\u5206\u5272\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5207\u7247\u64cd\u4f5c\u3002\u5207\u7247\u64cd\u4f5c\u5141\u8bb8\u4f60\u901a\u8fc7\u6307\u5b9a\u5f00\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\u6765\u63d0\u53d6\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;appleorangebananagrape&quot;<\/p>\n<p>apple = text[:5]<\/p>\n<p>orange = text[5:11]<\/p>\n<p>banana = text[11:17]<\/p>\n<p>grape = text[17:]<\/p>\n<p>print(apple, orange, banana, grape)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5b57\u7b26\u4e32\u5207\u7247\u5c06<code>text<\/code>\u5206\u5272\u6210\u4e86<code>apple<\/code>\u3001<code>orange<\/code>\u3001<code>banana<\/code>\u548c<code>grape<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u5b57\u7b26\u4e32\u6a21\u5f0f\u5339\u914d\u548c\u5206\u5272\u3002\u5b83\u5141\u8bb8\u4f60\u5b9a\u4e49\u590d\u6742\u7684\u5206\u9694\u7b26\uff0c\u5e76\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u5206\u5272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;apple123orange456banana789grape&quot;<\/p>\n<p>pattern = r&#39;\\d+&#39;<\/p>\n<p>fruits = re.split(pattern, text)<\/p>\n<p>print(fruits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<code>\\d+<\/code>\uff08\u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u5b57\uff09\u4f5c\u4e3a\u5206\u9694\u7b26\uff0c\u5c06\u5b57\u7b26\u4e32<code>text<\/code>\u5206\u5272\u6210\u4e86<code>apple<\/code>\u3001<code>orange<\/code>\u3001<code>banana<\/code>\u548c<code>grape<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u6839\u636e\u590d\u6742\u7684\u6761\u4ef6\u6765\u5206\u5272\u5b57\u7b26\u4e32\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u6765\u5b9e\u73b0\u5206\u5272\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;apple1orange2banana3grape&quot;<\/p>\n<p>fruits = []<\/p>\n<p>temp = &quot;&quot;<\/p>\n<p>for char in text:<\/p>\n<p>    if char.isdigit():<\/p>\n<p>        fruits.append(temp)<\/p>\n<p>        temp = &quot;&quot;<\/p>\n<p>    else:<\/p>\n<p>        temp += char<\/p>\n<p>if temp:<\/p>\n<p>    fruits.append(temp)<\/p>\n<p>print(fruits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32<code>text<\/code>\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u5e76\u6839\u636e\u662f\u5426\u662f\u6570\u5b57\u6765\u8fdb\u884c\u5206\u5272\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/p>\n<\/p>\n<p><p>\u9664\u4e86Python\u6807\u51c6\u5e93\u4e2d\u7684\u65b9\u6cd5\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5206\u5272\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c<code>pandas<\/code>\u5e93\u4e2d\u7684<code>str.split()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u66f4\u590d\u6742\u7684\u6570\u636e\u5206\u5272\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = pd.Series([&quot;apple;orange&quot;, &quot;banana;grape&quot;])<\/p>\n<p>split_data = data.str.split(&quot;;&quot;)<\/p>\n<p>print(split_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>pandas<\/code>\u5e93\u4e2d\u7684<code>str.split()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u591a\u4e2a\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/p>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u8bed\u6cd5\uff0c\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u5217\u8868\u3002\u4f60\u53ef\u4ee5\u7ed3\u5408\u5217\u8868\u63a8\u5bfc\u5f0f\u548c\u5b57\u7b26\u4e32\u7684\u5206\u5272\u65b9\u6cd5\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u5206\u5272\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;apple;orange,banana|grape&quot;<\/p>\n<p>separators = [&#39;;&#39;, &#39;,&#39;, &#39;|&#39;]<\/p>\n<p>fruits = [part for sep in separators for part in text.split(sep)]<\/p>\n<p>print(fruits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u548c<code>split()<\/code>\u65b9\u6cd5\u7ed3\u5408\u591a\u4e2a\u5206\u9694\u7b26\u6765\u5206\u5272\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u6709\u7279\u5b9a\u7684\u5206\u5272\u9700\u6c42\uff0c\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u81ea\u5b9a\u4e49\u51fd\u6570\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u9700\u6c42\u8fdb\u884c\u8c03\u6574\u548c\u4f18\u5316\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def custom_split(text, delimiters):<\/p>\n<p>    import re<\/p>\n<p>    regex_pattern = &#39;|&#39;.join(map(re.escape, delimiters))<\/p>\n<p>    return re.split(regex_pattern, text)<\/p>\n<p>text = &quot;apple;orange,banana|grape&quot;<\/p>\n<p>delimiters = [&#39;;&#39;, &#39;,&#39;, &#39;|&#39;]<\/p>\n<p>fruits = custom_split(text, delimiters)<\/p>\n<p>print(fruits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a<code>custom_split<\/code>\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\u4e32\u548c\u4e00\u4e2a\u5206\u9694\u7b26\u5217\u8868\uff0c\u5e76\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u5206\u5272\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5206\u5272\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002<strong>\u4f7f\u7528split()\u65b9\u6cd5\u662f\u6700\u7b80\u5355\u548c\u9ad8\u6548\u7684\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5<\/strong>\u3002<strong>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u5206\u5272\u9700\u6c42\uff0c\u53ef\u4ee5\u4f7f\u7528re.split()\u65b9\u6cd5\u548c\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\u3002\u5982\u679c\u9700\u8981\u66f4\u9ad8\u7ea7\u7684\u5206\u5272\u903b\u8f91\uff0c\u53ef\u4ee5\u7ed3\u5408\u5faa\u73af\u3001\u6761\u4ef6\u8bed\u53e5\u3001\u81ea\u5b9a\u4e49\u51fd\u6570\u6216\u7b2c\u4e09\u65b9\u5e93\u6765\u5b9e\u73b0\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u5904\u7406\u5b57\u7b26\u4e32\u5206\u5272\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6709\u6548\u5730\u5206\u5272\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>split()<\/code>\u65b9\u6cd5\u6765\u5206\u5272\u5b57\u7b26\u4e32\u3002\u8fd9\u4e2a\u65b9\u6cd5\u9ed8\u8ba4\u4ee5\u7a7a\u683c\u4e3a\u5206\u9694\u7b26\uff0c\u4f46\u4f60\u4e5f\u53ef\u4ee5\u6307\u5b9a\u5176\u4ed6\u5b57\u7b26\u4f5c\u4e3a\u5206\u9694\u7b26\u3002\u4f7f\u7528\u65b9\u5f0f\u5f88\u7b80\u5355\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;apple,banana,cherry&quot;\nfruits = text.split(&quot;,&quot;)\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32\u4f1a\u88ab\u9017\u53f7\u5206\u5272\u6210\u4e00\u4e2a\u5217\u8868\uff0c\u7ed3\u679c\u4e3a<code>[&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]<\/code>\u3002\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5904\u7406\u66f4\u590d\u6742\u7684\u5206\u5272\u9700\u6c42\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u5305\u542b\u591a\u4e2a\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5f53\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u591a\u79cd\u5206\u9694\u7b26\u65f6\uff0c\u53ef\u4ee5\u5229\u7528Python\u7684<code>re<\/code>\u6a21\u5757\u4e2d\u7684<code>split()<\/code>\u51fd\u6570\u3002\u8fd9\u4e2a\u65b9\u6cd5\u5141\u8bb8\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5b9a\u4e49\u591a\u4e2a\u5206\u9694\u7b26\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\ntext = &quot;apple;banana, cherry|orange&quot;\nfruits = re.split(r&#39;[;,\\| ]+&#39;, text)\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u4ee3\u7801\u4f1a\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u5206\u9694\u7b26\uff08\u5206\u53f7\u3001\u9017\u53f7\u3001\u7ba1\u9053\u7b26\u548c\u7a7a\u683c\uff09\u90fd\u4f5c\u4e3a\u5206\u5272\u70b9\uff0c\u6700\u7ec8\u7ed3\u679c\u5c06\u662f\u4e00\u4e2a\u65e0\u7a7a\u683c\u7684\u6c34\u679c\u5217\u8868\u3002<\/p>\n<p><strong>\u5982\u4f55\u9650\u5236\u5206\u5272\u7684\u6b21\u6570\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u53ea\u60f3\u9650\u5236\u5206\u5272\u7684\u6b21\u6570\uff0c\u53ef\u4ee5\u5728<code>split()<\/code>\u65b9\u6cd5\u4e2d\u4f20\u5165\u7b2c\u4e8c\u4e2a\u53c2\u6570\u3002\u8fd9\u4e2a\u53c2\u6570\u6307\u5b9a\u4e86\u5206\u5272\u7684\u6700\u5927\u6b21\u6570\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;one-two-three-four&quot;\nresult = text.split(&quot;-&quot;, 2)\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32\u4f1a\u88ab\u5206\u5272\u6210\u4e09\u4e2a\u90e8\u5206\uff0c\u7ed3\u679c\u4e3a<code>[&#39;one&#39;, &#39;two&#39;, &#39;three-four&#39;]<\/code>\u3002\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u63a7\u5236\u5206\u5272\u7684\u7ec6\u8282\uff0c\u786e\u4fdd\u8f93\u51fa\u7b26\u5408\u4f60\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5206\u5272\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528split()\u65b9\u6cd5\u3001\u4f7f\u7528re.split()\u65b9\u6cd5\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5207\u7247\u64cd\u4f5c [&hellip;]","protected":false},"author":3,"featured_media":1116232,"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\/1116221"}],"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=1116221"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1116221\/revisions"}],"predecessor-version":[{"id":1116234,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1116221\/revisions\/1116234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1116232"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1116221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1116221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1116221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}