{"id":1141304,"date":"2025-01-08T22:29:42","date_gmt":"2025-01-08T14:29:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1141304.html"},"modified":"2025-01-08T22:29:44","modified_gmt":"2025-01-08T14:29:44","slug":"%e7%94%a8python%e7%88%ac%e5%8f%96%e6%95%b0%e6%8d%ae%e5%90%8e%e5%a6%82%e4%bd%95%e5%ad%98%e5%85%a5%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1141304.html","title":{"rendered":"\u7528python\u722c\u53d6\u6570\u636e\u540e\u5982\u4f55\u5b58\u5165\u6570\u636e\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104044\/3a31ad2d-2667-4adb-802a-13108fee32df.webp\" alt=\"\u7528python\u722c\u53d6\u6570\u636e\u540e\u5982\u4f55\u5b58\u5165\u6570\u636e\u5e93\" \/><\/p>\n<p><p> <strong>\u7528Python\u722c\u53d6\u6570\u636e\u540e\u5b58\u5165\u6570\u636e\u5e93\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u5e93\u3001\u4f7f\u7528ORM\u6846\u67b6\u3001\u7f16\u5199SQL\u8bed\u53e5\u3001\u6570\u636e\u6e05\u6d17\u548c\u5904\u7406\u3002<\/strong> \u5176\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u5e93\u5c24\u4e3a\u91cd\u8981\uff0c\u4e0d\u540c\u7684\u6570\u636e\u5e93\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f\u3002\u4f8b\u5982\uff0cMySQL\u9002\u7528\u4e8e\u5927\u591a\u6570Web\u5e94\u7528\u7a0b\u5e8f\uff0c\u800cMongoDB\u5219\u66f4\u9002\u5408\u5904\u7406\u975e\u7ed3\u6784\u5316\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u5e93<\/h2>\n<\/p>\n<p><h3>1.1\u3001\u5173\u7cfb\u578b\u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><p>\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff08RDBMS\uff09\u5982MySQL\u3001PostgreSQL\u7b49\uff0c\u662f\u8bb8\u591a\u5e94\u7528\u7684\u9996\u9009\u3002\u8fd9\u4e9b\u6570\u636e\u5e93\u64c5\u957f\u5904\u7406\u7ed3\u6784\u5316\u6570\u636e\u548c\u590d\u6742\u7684\u67e5\u8be2\u3002<\/p>\n<\/p>\n<p><h4>1.1.1\u3001MySQL<\/h4>\n<\/p>\n<p><p>MySQL \u662f\u6700\u5e38\u89c1\u7684\u5f00\u6e90\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e4b\u4e00\uff0c\u9002\u7528\u4e8e\u4e2d\u5c0f\u578b\u9879\u76ee\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5MySQL\u6570\u636e\u5e93\uff1a\n<pre><code class=\"language-bash\">sudo apt-get install mysql-server<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528Python\u8fde\u63a5MySQL\uff1a\n<pre><code class=\"language-python\">import mysql.connector<\/p>\n<p>mydb = mysql.connector.connect(<\/p>\n<p>  host=&quot;localhost&quot;,<\/p>\n<p>  user=&quot;yourusername&quot;,<\/p>\n<p>  password=&quot;yourpassword&quot;,<\/p>\n<p>  database=&quot;yourdatabase&quot;<\/p>\n<p>)<\/p>\n<p>mycursor = mydb.cursor()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h4>1.1.2\u3001PostgreSQL<\/h4>\n<\/p>\n<p><p>PostgreSQL \u662f\u4e00\u4e2a\u529f\u80fd\u66f4\u5f3a\u5927\u3001\u652f\u6301\u66f4\u591a\u9ad8\u7ea7\u529f\u80fd\u7684\u5f00\u6e90\u5173\u7cfb\u578b\u6570\u636e\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5PostgreSQL\u6570\u636e\u5e93\uff1a\n<pre><code class=\"language-bash\">sudo apt-get install postgresql postgresql-contrib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528Python\u8fde\u63a5PostgreSQL\uff1a\n<pre><code class=\"language-python\">import psycopg2<\/p>\n<p>conn = psycopg2.connect(<\/p>\n<p>  dbname=&quot;yourdatabase&quot;,<\/p>\n<p>  user=&quot;yourusername&quot;,<\/p>\n<p>  password=&quot;yourpassword&quot;,<\/p>\n<p>  host=&quot;localhost&quot;<\/p>\n<p>)<\/p>\n<p>cur = conn.cursor()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>1.2\u3001\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><p>\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff08NoSQL\uff09\u5982MongoDB\u3001Redis\u7b49\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5927\u89c4\u6a21\u975e\u7ed3\u6784\u5316\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>1.2.1\u3001MongoDB<\/h4>\n<\/p>\n<p><p>MongoDB \u662f\u4e00\u4e2a\u57fa\u4e8e\u6587\u6863\u5b58\u50a8\u7684NoSQL\u6570\u636e\u5e93\uff0c\u9002\u7528\u4e8e\u5904\u7406\u975e\u7ed3\u6784\u5316\u6570\u636e\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5MongoDB\u6570\u636e\u5e93\uff1a\n<pre><code class=\"language-bash\">sudo apt-get install -y mongodb<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528Python\u8fde\u63a5MongoDB\uff1a\n<pre><code class=\"language-python\">from pymongo import MongoClient<\/p>\n<p>client = MongoClient(&#39;localhost&#39;, 27017)<\/p>\n<p>db = client.yourdatabase<\/p>\n<p>collection = db.yourcollection<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>\u4e8c\u3001\u4f7f\u7528ORM\u6846\u67b6<\/h2>\n<\/p>\n<p><p>ORM\uff08Object-Relational Mapping\uff09\u6846\u67b6\u53ef\u4ee5\u7b80\u5316\u6570\u636e\u5e93\u64cd\u4f5c\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u5177\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<p><h3>2.1\u3001SQLAlchemy<\/h3>\n<\/p>\n<p><p>SQLAlchemy \u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684Python ORM\u6846\u67b6\uff0c\u652f\u6301\u591a\u79cd\u6570\u636e\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5SQLAlchemy\uff1a\n<pre><code class=\"language-bash\">pip install sqlalchemy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528SQLAlchemy\u8fde\u63a5\u6570\u636e\u5e93\uff1a\n<pre><code class=\"language-python\">from sqlalchemy import create_engine<\/p>\n<p>from sqlalchemy.ext.declarative import declarative_base<\/p>\n<p>from sqlalchemy.orm import sessionmaker<\/p>\n<p>engine = create_engine(&#39;mysql+pymysql:\/\/user:password@localhost\/yourdatabase&#39;)<\/p>\n<p>Base = declarative_base()<\/p>\n<p>Session = sessionmaker(bind=engine)<\/p>\n<p>session = Session()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>2.2\u3001Django ORM<\/h3>\n<\/p>\n<p><p>Django\u81ea\u5e26\u7684ORM\u6846\u67b6\u9002\u7528\u4e8eDjango\u9879\u76ee\uff0c\u7b80\u5316\u4e86\u6570\u636e\u5e93\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5Django\uff1a\n<pre><code class=\"language-bash\">pip install django<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u914d\u7f6eDjango\u6570\u636e\u5e93\u8bbe\u7f6e\uff1a\n<pre><code class=\"language-python\">DATABASES = {<\/p>\n<p>    &#39;default&#39;: {<\/p>\n<p>        &#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,<\/p>\n<p>        &#39;NAME&#39;: &#39;yourdatabase&#39;,<\/p>\n<p>        &#39;USER&#39;: &#39;yourusername&#39;,<\/p>\n<p>        &#39;PASSWORD&#39;: &#39;yourpassword&#39;,<\/p>\n<p>        &#39;HOST&#39;: &#39;localhost&#39;,<\/p>\n<p>        &#39;PORT&#39;: &#39;3306&#39;,<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>\u4e09\u3001\u7f16\u5199SQL\u8bed\u53e5<\/h2>\n<\/p>\n<p><h3>3.1\u3001\u521b\u5efa\u8868<\/h3>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5e93\u4e2d\u521b\u5efa\u8868\u662f\u5b58\u50a8\u6570\u636e\u7684\u524d\u63d0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-sql\">CREATE TABLE yourtable (<\/p>\n<p>    id INT AUTO_INCREMENT PRIMARY KEY,<\/p>\n<p>    name VARCHAR(255),<\/p>\n<p>    data TEXT<\/p>\n<p>);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3.2\u3001\u63d2\u5165\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528SQL\u8bed\u53e5\u5c06\u722c\u53d6\u7684\u6570\u636e\u63d2\u5165\u5230\u6570\u636e\u5e93\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sql = &quot;INSERT INTO yourtable (name, data) VALUES (%s, %s)&quot;<\/p>\n<p>val = (&quot;Sample Name&quot;, &quot;Sample Data&quot;)<\/p>\n<p>mycursor.execute(sql, val)<\/p>\n<p>mydb.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u6570\u636e\u6e05\u6d17\u548c\u5904\u7406<\/h2>\n<\/p>\n<p><h3>4.1\u3001\u6570\u636e\u6e05\u6d17<\/h3>\n<\/p>\n<p><p>\u5728\u5c06\u6570\u636e\u5b58\u5165\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def clean_data(data):<\/p>\n<p>    # \u79fb\u9664HTML\u6807\u7b7e<\/p>\n<p>    data = re.sub(r&#39;&lt;.*?&gt;&#39;, &#39;&#39;, data)<\/p>\n<p>    # \u79fb\u9664\u591a\u4f59\u7684\u7a7a\u683c\u548c\u6362\u884c<\/p>\n<p>    data = data.strip()<\/p>\n<p>    return data<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4.2\u3001\u6570\u636e\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5904\u7406\u6570\u636e\u4f7f\u5176\u7b26\u5408\u6570\u636e\u5e93\u8981\u6c42\uff0c\u6bd4\u5982\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u3001\u53bb\u91cd\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def process_data(data):<\/p>\n<p>    # \u8f6c\u6362\u6570\u636e\u7c7b\u578b<\/p>\n<p>    data = int(data) if data.isdigit() else data<\/p>\n<p>    # \u53bb\u91cd<\/p>\n<p>    data = list(set(data))<\/p>\n<p>    return data<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u7efc\u5408\u793a\u4f8b<\/h2>\n<\/p>\n<p><h3>5.1\u3001\u722c\u53d6\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u8981\u722c\u53d6\u4e00\u4e2a\u7f51\u9875\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>url = &quot;http:\/\/example.com&quot;<\/p>\n<p>response = requests.get(url)<\/p>\n<p>soup = BeautifulSoup(response.text, &#39;html.parser&#39;)<\/p>\n<p>data = soup.find_all(&#39;p&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>5.2\u3001\u6e05\u6d17\u548c\u5904\u7406\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u5bf9\u722c\u53d6\u7684\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">cleaned_data = [clean_data(d.text) for d in data]<\/p>\n<p>processed_data = [process_data(d) for d in cleaned_data]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>5.3\u3001\u5b58\u5165\u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><p>\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u5b58\u5165\u6570\u636e\u5e93\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import mysql.connector<\/p>\n<p>mydb = mysql.connector.connect(<\/p>\n<p>  host=&quot;localhost&quot;,<\/p>\n<p>  user=&quot;yourusername&quot;,<\/p>\n<p>  password=&quot;yourpassword&quot;,<\/p>\n<p>  database=&quot;yourdatabase&quot;<\/p>\n<p>)<\/p>\n<p>mycursor = mydb.cursor()<\/p>\n<p>for d in processed_data:<\/p>\n<p>    sql = &quot;INSERT INTO yourtable (data) VALUES (%s)&quot;<\/p>\n<p>    val = (d,)<\/p>\n<p>    mycursor.execute(sql, val)<\/p>\n<p>mydb.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u5c31\u662f\u7528Python\u722c\u53d6\u6570\u636e\u540e\u5b58\u5165\u6570\u636e\u5e93\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u901a\u8fc7\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u5e93\u3001\u4f7f\u7528ORM\u6846\u67b6\u3001\u7f16\u5199SQL\u8bed\u53e5\u3001\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u548c\u5904\u7406\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5c06\u722c\u53d6\u7684\u6570\u636e\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e2d\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u5e93\u6765\u5b58\u50a8\u722c\u53d6\u7684\u6570\u636e\uff1f<\/strong><br \/>\u5728\u9009\u62e9\u6570\u636e\u5e93\u65f6\uff0c\u9996\u5148\u9700\u8981\u8003\u8651\u6570\u636e\u7684\u7ed3\u6784\u548c\u6027\u8d28\u3002\u5982\u679c\u722c\u53d6\u7684\u6570\u636e\u662f\u975e\u7ed3\u6784\u5316\u7684\uff0c\u53ef\u4ee5\u9009\u62e9NoSQL\u6570\u636e\u5e93\uff0c\u5982MongoDB\uff1b\u5982\u679c\u6570\u636e\u662f\u7ed3\u6784\u5316\u7684\uff0c\u5173\u7cfb\u578b\u6570\u636e\u5e93\u5982MySQL\u6216PostgreSQL\u53ef\u80fd\u66f4\u5408\u9002\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8003\u8651\u6570\u636e\u91cf\u3001\u67e5\u8be2\u9891\u7387\u548c\u6269\u5c55\u6027\u7b49\u56e0\u7d20\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u8fde\u63a5\u6570\u636e\u5e93\u7684\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u8fde\u63a5\u6570\u636e\u5e93\u7684\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\u5b89\u88c5\u76f8\u5e94\u7684\u6570\u636e\u5e93\u9a71\u52a8\u5305\u3001\u5bfc\u5165\u76f8\u5173\u5e93\u3001\u5efa\u7acb\u8fde\u63a5\u3001\u521b\u5efa\u6e38\u6807\u3001\u6267\u884cSQL\u8bed\u53e5\u4ee5\u53ca\u63d0\u4ea4\u4e8b\u52a1\u3002\u4ee5MySQL\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>mysql-connector-python<\/code>\u5e93\uff0c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import mysql.connector\n\n# \u5efa\u7acb\u8fde\u63a5\ndb = mysql.connector.connect(\n    host=&quot;localhost&quot;,\n    user=&quot;yourusername&quot;,\n    password=&quot;yourpassword&quot;,\n    database=&quot;yourdatabase&quot;\n)\n\n# \u521b\u5efa\u6e38\u6807\ncursor = db.cursor()\n\n# \u6267\u884cSQL\u8bed\u53e5\ncursor.execute(&quot;INSERT INTO yourtable (column1, column2) VALUES (value1, value2)&quot;)\n\n# \u63d0\u4ea4\u4e8b\u52a1\ndb.commit()\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5904\u7406\u722c\u53d6\u6570\u636e\u540e\u53ef\u80fd\u51fa\u73b0\u7684\u91cd\u590d\u8bb0\u5f55\uff1f<\/strong><br \/>\u5728\u5b58\u50a8\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u6570\u636e\u5e93\u4e2d\u7684\u552f\u4e00\u7ea6\u675f\u6765\u9632\u6b62\u91cd\u590d\u8bb0\u5f55\u7684\u51fa\u73b0\u3002\u5bf9\u4e8e\u9700\u8981\u53bb\u91cd\u7684\u60c5\u51b5\uff0c\u8fd8\u53ef\u4ee5\u5728\u6570\u636e\u63d2\u5165\u524d\u5148\u67e5\u8be2\u6570\u636e\u5e93\uff0c\u786e\u8ba4\u8be5\u8bb0\u5f55\u662f\u5426\u5df2\u5b58\u5728\u3002\u6b64\u5916\uff0c\u4f7f\u7528INSERT IGNORE\u8bed\u53e5\u6216ON DUPLICATE KEY UPDATE\u8bed\u6cd5\u4e5f\u80fd\u6709\u6548\u5904\u7406\u91cd\u590d\u6570\u636e\u7684\u63d2\u5165\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u722c\u53d6\u6570\u636e\u540e\u5b58\u5165\u6570\u636e\u5e93\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u5e93\u3001\u4f7f\u7528ORM\u6846\u67b6\u3001\u7f16\u5199SQL\u8bed\u53e5\u3001\u6570\u636e\u6e05\u6d17\u548c\u5904 [&hellip;]","protected":false},"author":3,"featured_media":1141309,"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\/1141304"}],"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=1141304"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1141304\/revisions"}],"predecessor-version":[{"id":1141313,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1141304\/revisions\/1141313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1141309"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1141304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1141304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1141304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}