{"id":991664,"date":"2024-12-27T08:31:03","date_gmt":"2024-12-27T00:31:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/991664.html"},"modified":"2024-12-27T08:31:07","modified_gmt":"2024-12-27T00:31:07","slug":"python%e5%a6%82%e4%bd%95%e9%80%89%e6%8b%a9%e6%9c%ac%e5%9c%b0%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/991664.html","title":{"rendered":"python\u5982\u4f55\u9009\u62e9\u672c\u5730\u6587\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25065845\/c67ed5b8-d373-4014-be2c-207f08eb50ba.webp\" alt=\"python\u5982\u4f55\u9009\u62e9\u672c\u5730\u6587\u4ef6\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u9009\u62e9\u672c\u5730\u6587\u4ef6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u5e93\u5982<code>os<\/code>\u548c<code>tkinter<\/code>\u3001\u7b2c\u4e09\u65b9\u5e93\u5982<code>PyQt<\/code>\u3002\u5176\u4e2d\uff0c<code>tkinter<\/code>\u662f\u6700\u5e38\u7528\u4e14\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u6765\u9009\u62e9\u6587\u4ef6\uff0c<code>os<\/code>\u6a21\u5757\u5219\u7528\u4e8e\u6587\u4ef6\u8def\u5f84\u64cd\u4f5c\uff0c<code>PyQt<\/code>\u63d0\u4f9b\u66f4\u590d\u6742\u7684GUI\u9009\u62e9<\/strong>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8be6\u7ec6\u8ba8\u8bba\u4f7f\u7528<code>tkinter<\/code>\u8fdb\u884c\u6587\u4ef6\u9009\u62e9\uff0c\u5e76\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7<code>os<\/code>\u6a21\u5757\u8fdb\u884c\u6587\u4ef6\u64cd\u4f5c\uff0c\u4ee5\u53ca\u4f7f\u7528<code>PyQt<\/code>\u6784\u5efa\u66f4\u590d\u6742\u7684\u6587\u4ef6\u9009\u62e9\u754c\u9762\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528TKINTER\u9009\u62e9\u672c\u5730\u6587\u4ef6<\/p>\n<\/p>\n<p><p><code>tkinter<\/code>\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u9002\u5408\u4e8e\u7b80\u5355\u7684\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u3002<code>tkinter<\/code>\u7684<code>filedialog<\/code>\u6a21\u5757\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5b9e\u73b0\u6587\u4ef6\u9009\u62e9\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u5bfc\u5165TKINTER<\/strong><\/p>\n<\/p>\n<p><p><code>tkinter<\/code>\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u65e0\u9700\u989d\u5916\u5b89\u88c5\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5bfc\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import filedialog<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9e\u73b0\u6587\u4ef6\u9009\u62e9\u529f\u80fd<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>filedialog.askopenfilename()<\/code>\u65b9\u6cd5\u6253\u5f00\u6587\u4ef6\u9009\u62e9\u5bf9\u8bdd\u6846\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root = tk.Tk()<\/p>\n<p>root.withdraw()  # \u9690\u85cf\u4e3b\u7a97\u53e3<\/p>\n<p>file_path = filedialog.askopenfilename()<\/p>\n<p>print(f&quot;Selected file: {file_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong> <code>tk.Tk()<\/code>\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u4e3b\u7a97\u53e3\uff0c\u800c<code>root.withdraw()<\/code>\u5219\u662f\u9690\u85cf\u8fd9\u4e2a\u7a97\u53e3\uff0c\u56e0\u4e3a\u6211\u4eec\u53ea\u9700\u8981\u6587\u4ef6\u9009\u62e9\u5bf9\u8bdd\u6846\u3002<code>filedialog.askopenfilename()<\/code>\u4f1a\u5f39\u51fa\u4e00\u4e2a\u7a97\u53e3\uff0c\u5141\u8bb8\u7528\u6237\u9009\u62e9\u6587\u4ef6\uff0c\u8fd4\u56de\u6240\u9009\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u6587\u4ef6\u7c7b\u578b\u8fc7\u6ee4<\/strong><\/p>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<code>filetypes<\/code>\u53c2\u6570\u6307\u5b9a\u53ef\u4ee5\u9009\u62e9\u7684\u6587\u4ef6\u7c7b\u578b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">file_path = filedialog.askopenfilename(<\/p>\n<p>    filetypes=[(&quot;Text files&quot;, &quot;*.txt&quot;), (&quot;All files&quot;, &quot;*.*&quot;)]<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u505a\u53ef\u4ee5\u9650\u5236\u7528\u6237\u53ea\u80fd\u9009\u62e9\u7279\u5b9a\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u5982\u6587\u672c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528OS\u6a21\u5757\u8fdb\u884c\u6587\u4ef6\u64cd\u4f5c<\/p>\n<\/p>\n<p><p><code>os<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u6587\u4ef6\u8def\u5f84\u548c\u76ee\u5f55\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>os.path.exists()<\/code>\u6765\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>file_path = &quot;\/path\/to\/file.txt&quot;<\/p>\n<p>if os.path.exists(file_path):<\/p>\n<p>    print(&quot;File exists.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;File does not exist.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u83b7\u53d6\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>os.path.abspath()<\/code>\u83b7\u53d6\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">absolute_path = os.path.abspath(file_path)<\/p>\n<p>print(f&quot;Absolute path: {absolute_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5176\u4ed6\u6587\u4ef6\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u83b7\u53d6\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">file_name, file_extension = os.path.splitext(file_path)<\/p>\n<p>print(f&quot;File name: {file_name}, File extension: {file_extension}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u66f4\u6539\u6587\u4ef6\u540d\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">new_file_path = os.path.join(os.path.dirname(file_path), &quot;new_name.txt&quot;)<\/p>\n<p>os.rename(file_path, new_file_path)<\/p>\n<p>print(f&quot;File renamed to: {new_file_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528PYQT\u521b\u5efa\u590d\u6742\u7684\u6587\u4ef6\u9009\u62e9\u754c\u9762<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u66f4\u590d\u6742UI\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528<code>PyQt<\/code>\u6216<code>PySide<\/code>\u3002<code>PyQt<\/code>\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u590d\u6742\u7684GUI\u5e94\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u548c\u5bfc\u5165PYQT<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\u5b89\u88c5<code>PyQt5<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install PyQt5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QFileDialog, QWidget<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9e\u73b0\u6587\u4ef6\u9009\u62e9\u529f\u80fd<\/strong><\/p>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5e76\u5b9e\u73b0\u6587\u4ef6\u9009\u62e9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">app = QApplication([])<\/p>\n<p>widget = QWidget()<\/p>\n<p>file_path, _ = QFileDialog.getOpenFileName(widget, &quot;Select File&quot;)<\/p>\n<p>print(f&quot;Selected file: {file_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong> <code>QApplication<\/code>\u662f\u5e94\u7528\u7a0b\u5e8f\u5bf9\u8c61\uff0c<code>QFileDialog.getOpenFileName()<\/code>\u65b9\u6cd5\u7528\u4e8e\u6253\u5f00\u6587\u4ef6\u9009\u62e9\u5bf9\u8bdd\u6846\uff0c\u8fd4\u56de\u9009\u4e2d\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u6587\u4ef6\u9009\u62e9\u5bf9\u8bdd\u6846<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>filter<\/code>\u53c2\u6570\u6765\u9650\u5236\u6587\u4ef6\u7c7b\u578b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">file_path, _ = QFileDialog.getOpenFileName(<\/p>\n<p>    widget, &quot;Select File&quot;, &quot;&quot;, &quot;Text Files (*.txt);;All Files (*)&quot;<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u6307\u5b9a\u7528\u6237\u53ea\u80fd\u9009\u62e9\u7279\u5b9a\u7c7b\u578b\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u672c\u5730\u6587\u4ef6\u662f\u8bb8\u591a\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5e38\u89c1\u9700\u6c42\uff0c\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6587\u672c\u5904\u7406\u5e94\u7528\u8fd8\u662f\u590d\u6742\u7684\u684c\u9762\u8f6f\u4ef6\u3002<code>tkinter<\/code>\u9002\u5408\u4e8e\u5feb\u901f\u5f00\u53d1\u548c\u7b80\u5355\u5e94\u7528\uff0c\u800c<code>PyQt<\/code>\u5219\u9002\u5408\u9700\u8981\u66f4\u591a\u81ea\u5b9a\u4e49\u548c\u590d\u6742\u754c\u9762\u7684\u5e94\u7528\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u786e\u4fdd\u7528\u6237\u4f53\u9a8c\u7684\u6d41\u7545\u548c\u754c\u9762\u7684\u53cb\u597d\u662f\u6700\u91cd\u8981\u7684\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177<\/strong><\/p>\n<\/p>\n<p><p>\u6839\u636e\u5e94\u7528\u7a0b\u5e8f\u7684\u590d\u6742\u7a0b\u5ea6\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff1a\u5bf9\u4e8e\u7b80\u5355\u7684\u6587\u4ef6\u9009\u62e9\u64cd\u4f5c\uff0c<code>tkinter<\/code>\u901a\u5e38\u8db3\u591f\uff1b\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u9700\u6c42\uff0c<code>PyQt<\/code>\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u6587\u4ef6\u8def\u5f84\u7684\u6700\u4f73\u5b9e\u8df5<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u6765\u5904\u7406\u6587\u4ef6\u8def\u5f84\u548c\u786e\u4fdd\u6587\u4ef6\u5b58\u5728\u6027\uff0c\u907f\u514d\u8def\u5f84\u786c\u7f16\u7801\u5e26\u6765\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7528\u6237\u4f53\u9a8c\u7684\u8003\u8651<\/strong><\/p>\n<\/p>\n<p><p>\u63d0\u4f9b\u6e05\u6670\u7684\u6587\u4ef6\u7c7b\u578b\u8fc7\u6ee4\u548c\u6613\u4e8e\u7406\u89e3\u7684\u5bf9\u8bdd\u6846\u6807\u9898\uff0c\u4ee5\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728Python\u5e94\u7528\u7a0b\u5e8f\u4e2d\u9ad8\u6548\u5730\u5b9e\u73b0\u672c\u5730\u6587\u4ef6\u9009\u62e9\u529f\u80fd\uff0c\u5e76\u6839\u636e\u9879\u76ee\u9700\u6c42\u8fdb\u884c\u9002\u5f53\u7684\u8c03\u6574\u548c\u4f18\u5316\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6253\u5f00\u672c\u5730\u6587\u4ef6\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>open()<\/code>\u51fd\u6570\u6765\u6253\u5f00\u672c\u5730\u6587\u4ef6\u3002\u4f60\u9700\u8981\u63d0\u4f9b\u6587\u4ef6\u7684\u8def\u5f84\u548c\u8bbf\u95ee\u6a21\u5f0f\uff0c\u4f8b\u5982\u8bfb\u53d6\u6a21\u5f0f\uff08<code>&#39;r&#39;<\/code>\uff09\u3001\u5199\u5165\u6a21\u5f0f\uff08<code>&#39;w&#39;<\/code>\uff09\u7b49\u3002\u6253\u5f00\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>read()<\/code>\u65b9\u6cd5\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u6216\u4f7f\u7528<code>write()<\/code>\u65b9\u6cd5\u5411\u6587\u4ef6\u5199\u5165\u6570\u636e\u3002\u8bb0\u5f97\u5728\u64cd\u4f5c\u5b8c\u6210\u540e\u4f7f\u7528<code>close()<\/code>\u65b9\u6cd5\u5173\u95ed\u6587\u4ef6\uff0c\u6216\u8005\u4f7f\u7528<code>with<\/code>\u8bed\u53e5\u6765\u81ea\u52a8\u7ba1\u7406\u6587\u4ef6\u7684\u6253\u5f00\u548c\u5173\u95ed\u3002<\/p>\n<p><strong>Python\u662f\u5426\u652f\u6301\u9009\u62e9\u7279\u5b9a\u7c7b\u578b\u7684\u6587\u4ef6\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4f7f\u7528<code>tkinter<\/code>\u5e93\u4e2d\u7684<code>filedialog<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u9009\u62e9\u5bf9\u8bdd\u6846\uff0c\u5141\u8bb8\u7528\u6237\u9009\u62e9\u7279\u5b9a\u7c7b\u578b\u7684\u6587\u4ef6\u3002\u901a\u8fc7\u8bbe\u7f6e\u6587\u4ef6\u7c7b\u578b\u7684\u8fc7\u6ee4\u5668\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u53ea\u770b\u5230\u7279\u5b9a\u6269\u5c55\u540d\u7684\u6587\u4ef6\uff0c\u4f8b\u5982<code>.txt<\/code>\u3001<code>.csv<\/code>\u7b49\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">from tkinter import Tk\nfrom tkinter.filedialog import askopenfilename\n\nTk().withdraw()  # \u9690\u85cf\u4e3b\u7a97\u53e3\nfile_path = askopenfilename(filetypes=[(&quot;Text files&quot;, &quot;*.txt&quot;), (&quot;CSV files&quot;, &quot;*.csv&quot;)])\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5904\u7406\u9009\u62e9\u7684\u672c\u5730\u6587\u4ef6\u4e2d\u7684\u6570\u636e\uff1f<\/strong><br \/>\u4e00\u65e6\u9009\u62e9\u4e86\u6587\u4ef6\u5e76\u6253\u5f00\u5b83\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5404\u79cd\u5e93\u6765\u5904\u7406\u6570\u636e\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6587\u4ef6\u662fCSV\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u5e93\u8bfb\u53d6\u548c\u5206\u6790\u6570\u636e\u3002\u4f7f\u7528<code>pandas<\/code>\u7684<code>read_csv()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u52a0\u8f7d\u6570\u636e\u5230\u6570\u636e\u6846\u4e2d\uff0c\u4fbf\u4e8e\u8fdb\u4e00\u6b65\u7684\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u3002\u5bf9\u4e8e\u6587\u672c\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u64cd\u4f5c\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u63d0\u53d6\u548c\u5904\u7406\u6240\u9700\u7684\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u9009\u62e9\u672c\u5730\u6587\u4ef6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u5e93\u5982os\u548ctkinter\u3001\u7b2c\u4e09\u65b9\u5e93\u5982PyQt\u3002\u5176\u4e2d\uff0c [&hellip;]","protected":false},"author":3,"featured_media":991680,"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\/991664"}],"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=991664"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/991664\/revisions"}],"predecessor-version":[{"id":991685,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/991664\/revisions\/991685"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/991680"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=991664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=991664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=991664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}