{"id":1137458,"date":"2025-01-08T21:48:56","date_gmt":"2025-01-08T13:48:56","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1137458.html"},"modified":"2025-01-08T21:49:04","modified_gmt":"2025-01-08T13:49:04","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%ae%97%e5%95%86%e5%93%81%e9%94%80%e5%94%ae%e4%bb%b7%e6%a0%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1137458.html","title":{"rendered":"\u5982\u4f55\u7528Python\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101301\/d4122e95-a74b-4690-8f0e-bd0b90110121.webp\" alt=\"\u5982\u4f55\u7528Python\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u7528Python\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u8ba1\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c\u7684\u5173\u952e\u70b9\u5305\u62ec\uff1a<strong>\u6b63\u786e\u83b7\u53d6\u5546\u54c1\u539f\u4ef7\u3001\u5e94\u7528\u9002\u5f53\u7684\u6298\u6263\u6216\u589e\u503c\u7a0e\u3001\u8003\u8651\u591a\u79cd\u5546\u54c1\u7ec4\u5408\u7684\u4ef7\u683c\u8ba1\u7b97<\/strong>\u3002\u5176\u4e2d\uff0c\u6b63\u786e\u83b7\u53d6\u5546\u54c1\u539f\u4ef7\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\uff0c\u56e0\u4e3a\u5b83\u51b3\u5b9a\u4e86\u540e\u7eed\u6240\u6709\u8ba1\u7b97\u7684\u57fa\u7840\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u5173\u952e\u70b9\uff0c\u5e76\u4ecb\u7ecd\u5982\u4f55\u7528Python\u7f16\u5199\u4ee3\u7801\u6765\u5b9e\u73b0\u8fd9\u4e9b\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u83b7\u53d6\u5546\u54c1\u539f\u4ef7<\/h3>\n<\/p>\n<p><p>\u5728\u8ba1\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c\u4e4b\u524d\uff0c\u7b2c\u4e00\u6b65\u662f\u83b7\u53d6\u5546\u54c1\u7684\u539f\u4ef7\u3002\u539f\u4ef7\u901a\u5e38\u662f\u5546\u5bb6\u8bbe\u5b9a\u7684\u521d\u59cb\u4ef7\u683c\uff0c\u53ef\u80fd\u4f1a\u5b58\u5728\u4e8e\u6570\u636e\u5e93\u3001\u7535\u5b50\u8868\u683c\u6216\u8005\u5176\u4ed6\u6570\u636e\u6e90\u4e2d\u3002\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u6765\u83b7\u53d6\u8fd9\u4e9b\u6570\u636e\uff0c\u6bd4\u5982\u4eceCSV\u6587\u4ef6\u8bfb\u53d6\u6216\u8005\u901a\u8fc7API\u83b7\u53d6\u3002<\/p>\n<\/p>\n<p><h4>1. \u4eceCSV\u6587\u4ef6\u8bfb\u53d6\u5546\u54c1\u539f\u4ef7<\/h4>\n<\/p>\n<p><p>CSV\u6587\u4ef6\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6570\u636e\u5b58\u50a8\u683c\u5f0f\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>def read_prices_from_csv(file_path):<\/p>\n<p>    prices = {}<\/p>\n<p>    with open(file_path, mode=&#39;r&#39;) as file:<\/p>\n<p>        csv_reader = csv.reader(file)<\/p>\n<p>        next(csv_reader)  # \u8df3\u8fc7\u8868\u5934<\/p>\n<p>        for row in csv_reader:<\/p>\n<p>            product_name = row[0]<\/p>\n<p>            price = float(row[1])<\/p>\n<p>            prices[product_name] = price<\/p>\n<p>    return prices<\/p>\n<h2><strong>\u5047\u8bbeCSV\u6587\u4ef6\u5305\u542b\u4e24\u5217\uff1a\u5546\u54c1\u540d\u79f0\u548c\u539f\u4ef7<\/strong><\/h2>\n<p>file_path = &#39;product_prices.csv&#39;<\/p>\n<p>prices = read_prices_from_csv(file_path)<\/p>\n<p>print(prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570 <code>read_prices_from_csv<\/code>\uff0c\u5b83\u4eceCSV\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5546\u54c1\u540d\u79f0\u548c\u539f\u4ef7\uff0c\u5e76\u5c06\u5b83\u4eec\u5b58\u50a8\u5728\u4e00\u4e2a\u5b57\u5178\u4e2d\u3002<\/p>\n<\/p>\n<p><h4>2. \u901a\u8fc7API\u83b7\u53d6\u5546\u54c1\u539f\u4ef7<\/h4>\n<\/p>\n<p><p>\u6709\u65f6\u5019\u5546\u54c1\u7684\u539f\u4ef7\u53ef\u80fd\u5b58\u50a8\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\uff0c\u9700\u8981\u901a\u8fc7API\u6765\u83b7\u53d6\u3002\u8fd9\u65f6\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684 <code>requests<\/code> \u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def get_prices_from_api(api_url):<\/p>\n<p>    response = requests.get(api_url)<\/p>\n<p>    data = response.json()<\/p>\n<p>    prices = {item[&#39;name&#39;]: item[&#39;price&#39;] for item in data}<\/p>\n<p>    return prices<\/p>\n<h2><strong>\u5047\u8bbeAPI\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5546\u54c1\u540d\u79f0\u548c\u539f\u4ef7\u7684JSON\u6570\u7ec4<\/strong><\/h2>\n<p>api_url = &#39;https:\/\/api.example.com\/product_prices&#39;<\/p>\n<p>prices = get_prices_from_api(api_url)<\/p>\n<p>print(prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570 <code>get_prices_from_api<\/code>\uff0c\u5b83\u4eceAPI\u83b7\u53d6\u5546\u54c1\u540d\u79f0\u548c\u539f\u4ef7\uff0c\u5e76\u5c06\u5b83\u4eec\u5b58\u50a8\u5728\u4e00\u4e2a\u5b57\u5178\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5e94\u7528\u6298\u6263\u6216\u589e\u503c\u7a0e<\/h3>\n<\/p>\n<p><p>\u83b7\u53d6\u4e86\u5546\u54c1\u539f\u4ef7\u540e\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u9700\u8981\u8003\u8651\u5982\u4f55\u5e94\u7528\u6298\u6263\u6216\u589e\u503c\u7a0e\u3002\u8fd9\u4e00\u6b65\u975e\u5e38\u5173\u952e\uff0c\u56e0\u4e3a\u4e0d\u540c\u7684\u5546\u54c1\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u6298\u6263\u7387\u6216\u7a0e\u7387\u3002<\/p>\n<\/p>\n<p><h4>1. \u5e94\u7528\u56fa\u5b9a\u6298\u6263<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u6240\u6709\u5546\u54c1\u90fd\u6709\u4e00\u4e2a\u56fa\u5b9a\u6298\u6263\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u8ba1\u7b97\u6298\u540e\u4ef7\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def apply_discount(prices, discount_percentage):<\/p>\n<p>    discounted_prices = {}<\/p>\n<p>    for product, price in prices.items():<\/p>\n<p>        discounted_price = price * (1 - discount_percentage \/ 100)<\/p>\n<p>        discounted_prices[product] = discounted_price<\/p>\n<p>    return discounted_prices<\/p>\n<h2><strong>\u5047\u8bbe\u6298\u6263\u7387\u4e3a10%<\/strong><\/h2>\n<p>discount_percentage = 10<\/p>\n<p>discounted_prices = apply_discount(prices, discount_percentage)<\/p>\n<p>print(discounted_prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5e94\u7528\u589e\u503c\u7a0e<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5e94\u7528\u589e\u503c\u7a0e\uff0c\u6211\u4eec\u53ef\u4ee5\u7c7b\u4f3c\u5730\u8fdb\u884c\u8ba1\u7b97\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def apply_tax(prices, tax_percentage):<\/p>\n<p>    taxed_prices = {}<\/p>\n<p>    for product, price in prices.items():<\/p>\n<p>        taxed_price = price * (1 + tax_percentage \/ 100)<\/p>\n<p>        taxed_prices[product] = taxed_price<\/p>\n<p>    return taxed_prices<\/p>\n<h2><strong>\u5047\u8bbe\u589e\u503c\u7a0e\u7387\u4e3a15%<\/strong><\/h2>\n<p>tax_percentage = 15<\/p>\n<p>taxed_prices = apply_tax(prices, tax_percentage)<\/p>\n<p>print(taxed_prices)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u8003\u8651\u591a\u79cd\u5546\u54c1\u7ec4\u5408\u7684\u4ef7\u683c\u8ba1\u7b97<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u9500\u552e\u4e2d\uff0c\u6d88\u8d39\u8005\u901a\u5e38\u4e0d\u4f1a\u53ea\u8d2d\u4e70\u5355\u4e00\u5546\u54c1\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u8003\u8651\u591a\u79cd\u5546\u54c1\u7ec4\u5408\u7684\u4ef7\u683c\u8ba1\u7b97\u3002\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u5904\u7406\u8d2d\u7269\u8f66\u4e2d\u5546\u54c1\u7684\u603b\u4ef7\u683c\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><h4>1. \u8ba1\u7b97\u8d2d\u7269\u8f66\u603b\u4ef7\u683c<\/h4>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u8ba1\u7b97\u8d2d\u7269\u8f66\u4e2d\u6240\u6709\u5546\u54c1\u7684\u603b\u4ef7\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_total_price(cart, prices):<\/p>\n<p>    total_price = 0<\/p>\n<p>    for product, quantity in cart.items():<\/p>\n<p>        total_price += prices[product] * quantity<\/p>\n<p>    return total_price<\/p>\n<h2><strong>\u5047\u8bbe\u8d2d\u7269\u8f66\u5305\u542b\u5546\u54c1\u540d\u79f0\u548c\u6570\u91cf<\/strong><\/h2>\n<p>cart = {&#39;Product A&#39;: 2, &#39;Product B&#39;: 3}<\/p>\n<p>total_price = calculate_total_price(cart, discounted_prices)<\/p>\n<p>print(f&#39;Total price: {total_price}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5e94\u7528\u8d2d\u7269\u8f66\u7ea7\u522b\u7684\u6298\u6263\u6216\u7a0e\u7387<\/h4>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6298\u6263\u6216\u7a0e\u7387\u662f\u9488\u5bf9\u6574\u4e2a\u8d2d\u7269\u8f66\u7684\uff0c\u800c\u4e0d\u662f\u5355\u4e2a\u5546\u54c1\u3002\u8fd9\u65f6\u6211\u4eec\u9700\u8981\u5728\u8ba1\u7b97\u603b\u4ef7\u683c\u540e\u518d\u5e94\u7528\u8fd9\u4e9b\u6298\u6263\u6216\u7a0e\u7387\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def apply_cart_discount(total_price, discount_percentage):<\/p>\n<p>    return total_price * (1 - discount_percentage \/ 100)<\/p>\n<p>def apply_cart_tax(total_price, tax_percentage):<\/p>\n<p>    return total_price * (1 + tax_percentage \/ 100)<\/p>\n<h2><strong>\u5047\u8bbe\u8d2d\u7269\u8f66\u7ea7\u522b\u7684\u6298\u6263\u7387\u548c\u7a0e\u7387<\/strong><\/h2>\n<p>cart_discount_percentage = 5<\/p>\n<p>cart_tax_percentage = 10<\/p>\n<p>total_price_with_discount = apply_cart_discount(total_price, cart_discount_percentage)<\/p>\n<p>total_price_with_tax = apply_cart_tax(total_price_with_discount, cart_tax_percentage)<\/p>\n<p>print(f&#39;Total price after discount and tax: {total_price_with_tax}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u6709\u6548\u5730\u8ba1\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c\u3002<strong>\u5173\u952e\u6b65\u9aa4\u5305\u62ec\uff1a\u6b63\u786e\u83b7\u53d6\u5546\u54c1\u539f\u4ef7\u3001\u5e94\u7528\u9002\u5f53\u7684\u6298\u6263\u6216\u589e\u503c\u7a0e\u3001\u8003\u8651\u591a\u79cd\u5546\u54c1\u7ec4\u5408\u7684\u4ef7\u683c\u8ba1\u7b97<\/strong>\u3002\u6bcf\u4e00\u6b65\u90fd\u9700\u8981\u4ed4\u7ec6\u5904\u7406\uff0c\u4ee5\u786e\u4fdd\u6700\u7ec8\u8ba1\u7b97\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u8fdb\u884c\u8fd9\u4e9b\u8ba1\u7b97\u7684\u597d\u5904\u662f\u7075\u6d3b\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u8c03\u6574\u6298\u6263\u7387\u3001\u7a0e\u7387\uff0c\u751a\u81f3\u6dfb\u52a0\u66f4\u591a\u7684\u8ba1\u7b97\u903b\u8f91\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u4e1a\u52a1\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u5408\u7406\u7684\u7f16\u7a0b\u5b9e\u8df5\u548c\u4ee3\u7801\u4f18\u5316\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u8ba1\u7b97\u8fc7\u7a0b\u7684\u9ad8\u6548\u548c\u51c6\u786e\u3002\u8fd9\u4e0d\u4ec5\u6709\u52a9\u4e8e\u63d0\u9ad8\u4e1a\u52a1\u8fd0\u8425\u6548\u7387\uff0c\u8fd8\u80fd\u589e\u5f3a\u5ba2\u6237\u6ee1\u610f\u5ea6\u548c\u4fe1\u4efb\u5ea6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8ba1\u7b97\u5546\u54c1\u7684\u6298\u6263\u4ef7\u683c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u8ba1\u7b97\u5546\u54c1\u7684\u6298\u6263\u4ef7\u683c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u6570\u5b66\u8fd0\u7b97\u5b9e\u73b0\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u786e\u5b9a\u539f\u4ef7\u548c\u6298\u6263\u7387\u3002\u4f7f\u7528\u4ee5\u4e0b\u516c\u5f0f\u53ef\u4ee5\u8f7b\u677e\u8ba1\u7b97\u6298\u6263\u540e\u7684\u4ef7\u683c\uff1a  <\/p>\n<pre><code class=\"language-python\">original_price = 100  # \u539f\u4ef7\ndiscount_rate = 0.2   # \u6298\u6263\u7387\uff0820%\uff09\ndiscounted_price = original_price * (1 - discount_rate)\nprint(discounted_price)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa\u6298\u6263\u540e\u7684\u4ef7\u683c\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u539f\u4ef7\u548c\u6298\u6263\u7387\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u5546\u54c1\u7684\u7a0e\u540e\u4ef7\u683c\uff1f<\/strong><br \/>\u8981\u8ba1\u7b97\u5546\u54c1\u7684\u7a0e\u540e\u4ef7\u683c\uff0c\u9700\u8981\u77e5\u9053\u5546\u54c1\u7684\u539f\u4ef7\u548c\u7a0e\u7387\u3002\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u53ef\u4ee5\u5b9e\u73b0\uff1a  <\/p>\n<pre><code class=\"language-python\">original_price = 100  # \u539f\u4ef7\ntax_rate = 0.1        # \u7a0e\u7387\uff0810%\uff09\ntaxed_price = original_price * (1 + tax_rate)\nprint(taxed_price)\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u8f93\u51fa\u5305\u542b\u7a0e\u8d39\u7684\u6700\u7ec8\u4ef7\u683c\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\uff0c\u60a8\u53ef\u4ee5\u8c03\u6574\u539f\u4ef7\u548c\u7a0e\u7387\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Python\u521b\u5efa\u4e00\u4e2a\u5546\u54c1\u4ef7\u683c\u8ba1\u7b97\u5668\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u5546\u54c1\u4ef7\u683c\u8ba1\u7b97\u5668\uff0c\u7528\u6237\u8f93\u5165\u539f\u4ef7\u3001\u6298\u6263\u548c\u7a0e\u7387\uff0c\u7a0b\u5e8f\u8f93\u51fa\u6700\u7ec8\u4ef7\u683c\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">def calculate_final_price(original_price, discount_rate, tax_rate):\n    discounted_price = original_price * (1 - discount_rate)\n    final_price = discounted_price * (1 + tax_rate)\n    return final_price\n\n# \u7528\u6237\u8f93\u5165\noriginal_price = float(input(&quot;\u8bf7\u8f93\u5165\u5546\u54c1\u539f\u4ef7: &quot;))\ndiscount_rate = float(input(&quot;\u8bf7\u8f93\u5165\u6298\u6263\u7387\uff08\u598220%\u8bf7\u8f93\u51650.2\uff09: &quot;))\ntax_rate = float(input(&quot;\u8bf7\u8f93\u5165\u7a0e\u7387\uff08\u598210%\u8bf7\u8f93\u51650.1\uff09: &quot;))\n\nfinal_price = calculate_final_price(original_price, discount_rate, tax_rate)\nprint(f&quot;\u6700\u7ec8\u9500\u552e\u4ef7\u683c\u4e3a: {final_price}&quot;)\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u5c06\u5e2e\u52a9\u7528\u6237\u6839\u636e\u8f93\u5165\u7684\u4fe1\u606f\u8ba1\u7b97\u51fa\u6700\u7ec8\u9500\u552e\u4ef7\u683c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7528Python\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c \u4f7f\u7528Python\u8ba1\u7b97\u5546\u54c1\u9500\u552e\u4ef7\u683c\u7684\u5173\u952e\u70b9\u5305\u62ec\uff1a\u6b63\u786e\u83b7\u53d6\u5546\u54c1\u539f\u4ef7\u3001\u5e94\u7528\u9002\u5f53\u7684\u6298 [&hellip;]","protected":false},"author":3,"featured_media":1137472,"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\/1137458"}],"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=1137458"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137458\/revisions"}],"predecessor-version":[{"id":1137475,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137458\/revisions\/1137475"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1137472"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1137458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1137458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1137458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}