{"id":340740,"date":"2021-02-13T06:07:00","date_gmt":"2021-02-12T22:07:00","guid":{"rendered":"http:\/\/4563.org\/?p=340740"},"modified":"2021-02-13T06:07:00","modified_gmt":"2021-02-12T22:07:00","slug":"%e5%88%a9%e7%94%a8%e7%ba%bf%e7%a8%8b%e5%92%8c%e4%ba%8b%e4%bb%b6%e7%b3%bb%e7%bb%9f%e6%9b%b4%e6%96%b0-tkinter-%e7%9a%84%e8%bf%9b%e5%ba%a6%e6%9d%a1%ef%bc%8c%e5%9c%a8%e5%90%8c%e6%ad%a5%e7%9a%84%e6%97%b6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=340740","title":{"rendered":"\u5229\u7528\u7ebf\u7a0b\u548c\u4e8b\u4ef6\u7cfb\u7edf\u66f4\u65b0 tkinter \u7684\u8fdb\u5ea6\u6761\uff0c\u5728\u540c\u6b65\u7684\u65f6\u5019\u5361\u4f4f\u4e86\uff0c\u6c42\u5927\u4f6c\u5e2e\u770b\u4e0b\u3002\u3002\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5229\u7528\u7ebf\u7a0b\u548c\u4e8b\u4ef6\u7cfb\u7edf\u66f4\u65b0 tkinter \u7684\u8fdb\u5ea6\u6761\uff0c\u5728\u540c\u6b65\u7684\u65f6\u5019\u5361\u4f4f\u4e86\uff0c\u6c42\u5927\u4f6c\u5e2e\u770b\u4e0b\u3002\u3002\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : seventhbible <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6700\u8fd1\u5728\u7528 python \u5199\u5de5\u5177\u7ed9\u5c0f\u7ec4\u7684\u5176\u4ed6\u6210\u5458\u4f7f\u7528\uff0c\u56e0\u4e3a\u9700\u8981\u53ef\u4ee5\u5728 GUI \u4e0a\u8f93\u5165\u4e0d\u540c\u7684\u53d8\u91cf\u503c\u505a\u4e0d\u540c\u7684\u5224\u65ad\u5904\u7406\u6240\u4ee5\u6700\u540e\u5199\u4e86\u4e00\u4e2a gui \u3002\u73b0\u5728\u95ee\u9898\u662f\uff0c\u6700\u540e\u6211\u5e0c\u671b\u5199\u4e00\u4e2a\u8fdb\u5ea6\u6761\uff0c\u53ef\u4ee5\u5728\u4e3b\u7ebf\u7a0b\u7684 for-loop \u4e2d\uff0c\u6bcf\u5904\u7406\u5b8c\u4e00\u4e2a\u4efb\u52a1\u540e\u53d1\u9001\u4e00\u4e2a\u4e8b\u4ef6\uff0c\u7ed9\u5728\u53e6\u5916\u4e00\u4e2a\u7ebf\u7a0b\u7684\u4e8b\u4ef6\u7ba1\u7406\u5668\uff0c\u4e8b\u4ef6\u7ba1\u7406\u5668\u53ef\u4ee5\u7acb\u523b\u66f4\u65b0\u54cd\u5e94 GUI \u7684\u8fdb\u5ea6\u6761\u7684\u8fdb\u5ea6\u3002 \u4e0b\u9762\u662f\u6211\u5199\u7684\u4ee3\u7801\uff1a<\/p>\n<pre><code>from queue import Queue, Empty from threading import * from tkinter import * import time from tkinter import ttk  EVENT_TYPE_1 = \"Count\" MAX_NUMBER = 10 CUR_NUMBER = 0  class event_manager:     def __init__(self):         self._eventQueue = Queue()         self._thread = Thread(target=self.Run)         self._handlers = {}         self._active = False      def Start(self):         self._active = True         self._thread.start()      def Run(self):         while self._active is True:             try:                 event = self._eventQueue.get(block=True, timeout=1)                 self.Process(event)             except Empty:                 pass      def Process(self, event):         if event.type in self._handlers:             for handler in self._handlers[event.type]:                 handler()         else:             pass      def Stop(self):         self._active = False         self._thread.join()      def addEventListenter(self, type_, handler):         try:             handlerList = self._handlers[type_]          except KeyError:             handlerList = []             self._handlers[type_] = handlerList          if handler not in handlerList:             handlerList.append(handler)      def removeEventListenter(self, type_, handler):         try:             handlerList = self._handlers[type_]             if handler in handlerList:                 handlerList.remove(handler)             if not handlerList:                 del self._handlers[type_]         except KeyError:             pass      def sendEvent(self, event):         self._eventQueue.put(event)   class Event:     def __init__(self, event_event_name, cur_done_task, type_=None):           self.type = type_         self._event_name = event_event_name         self._curDoneTask = cur_done_task   class EventSource:     def __init__(self, event_name, event_mgr, max_number, type):         self._event_name = event_name         self._event_manager = event_mgr         self._type = type         self._max_number = max_number      def count(self):         global CUR_NUMBER         for i in range(self._max_number):             CUR_NUMBER = i + 1             print(\"************ main thread start\uff1anow start process {} - count : {}\".format(self._event_name, CUR_NUMBER))             event = Event(\"test\", CUR_NUMBER, type_=self._type)             self._event_manager.sendEvent(event)             time.sleep(1)  class GUIListener(Tk):     def __init__(self):         super(GUIListener, self).__init__()          self.title(\"Progress GUI\")         self.geometry(\"1200x805+600+100\")         self.config(bg=\"#535353\")         self.resizable(True, True)          self.progressBar = ttk.Progressbar(master=self, orient=HORIZONTAL, maximum=MAX_NUMBER, length=300)         self.progressBar.pack()         self.button = ttk.Button(self, text=\"Run\", command=lambda: self.button_function(MAX_NUMBER))         self.button.pack()      def update_progress_value(self):         print(\"************Sub thread start: detect progress bar value is now...{}\".format(self.progressBar['value']))         self.progressBar['value'] = CUR_NUMBER         self.progressBar.update_idletasks()         print(\"************Sub thread start: update progress bar value to...{}\".format(CUR_NUMBER))      def button_function(self,max_number):         es = EventSource(\"eventSource\", eventMgr, max_number, EVENT_TYPE_1)         es.count()  if __name__ == '__main__':     gui = GUIListener()      eventMgr = event_manager()     eventMgr.addEventListenter(EVENT_TYPE_1, gui.update_progress_value)     eventMgr.Start()      gui.mainloop() <\/code><\/pre>\n<p>\u73b0\u5728\u7684\u95ee\u9898\u662f\uff0c\u8fd4\u56de\u7684\u7ed3\u679c\u5f88\u5947\u602a\uff0c\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<pre><code>************ main thread start\uff1anow start process eventSource - count : 1 ************ main thread start\uff1anow start process eventSource - count : 2 ************ main thread start\uff1anow start process eventSource - count : 3 ************ main thread start\uff1anow start process eventSource - count : 4 ************ main thread start\uff1anow start process eventSource - count : 5 ************ main thread start\uff1anow start process eventSource - count : 6 ************ main thread start\uff1anow start process eventSource - count : 7 ************ main thread start\uff1anow start process eventSource - count : 8 ************ main thread start\uff1anow start process eventSource - count : 9 ************ main thread start\uff1anow start process eventSource - count : 10 ************Sub thread start: detect progress bar value is now...0.0 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 ************Sub thread start: detect progress bar value is now...10 ************Sub thread start: update progress bar value to...10 <\/code><\/pre>\n<p>\u8bf7\u5927\u4f6c\u6307\u70b9\u4e00\u4e0b\uff0c\u56e0\u4e3a\u6211\u5e0c\u671b\u7684\u7ed3\u679c\u662f\u7c7b\u4f3c\u4e0b\u9762\u8fd9\u6837\u7acb\u523b\u54cd\u5e94\u63d2\u5165\u7684\u987a\u5e8f\uff1a<\/p>\n<pre><code>************ main thread start\uff1anow start process eventSource - count : 1 ************Sub thread start: detect progress bar value is now...0.0 ************Sub thread start: update progress bar value to...1 ************ main thread start\uff1anow start process eventSource - count : 2 ************Sub thread start: detect progress bar value is now...1.0 ************Sub thread start: update progress bar value to...2 ************ main thread start\uff1anow start process eventSource - count : 3 ************Sub thread start: detect progress bar value is now...2.0 ************Sub thread start: update progress bar value to...3 ... etc <\/code><\/pre>\n<p>\u771f\u7684\u8fd9\u4e2a\u95ee\u9898\u56f0\u6270\u4e86\u6211\u86ee\u4e45\u4e86\uff0c\u5e0c\u671b\u5927\u4f6c\u53ef\u4ee5\u4e0d\u541d\u8d50\u6559\uff0c\u6307\u70b9\u95ee\u9898\u53d1\u751f\u5728\u54ea\u91cc\uff0c\u5982\u4f55\u4fee\u6539\u53ef\u4ee5\u8fbe\u5230\u9884\u671f\u76ee\u7684\uff0c\u611f\u6fc0\u4e0d\u5c3d\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>13<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5266254\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ec0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u6539\u4e86 2 \u4e2a\u5730\u65b9<\/p>\n<p>1. class event_manager \u91cc\u9762\u7684 __init__<br \/>\u4ece self._thread = Thread(target=self.Run)<br \/>\u6539\u6210 self._thread = Thread(target=self.Run, daemon=True)<\/p>\n<p>2. class GUIListener \u91cc\u9762\u7684 button_function<br \/>\u4ece es.count()<br \/>\u6539\u6210 Thread(target=es.count).start()<\/p>\n<p>count \u88ab UI \u7ebf\u7a0b\u8c03\u7528\uff0c\u800c count \u91cc\u9762\u6709 sleep\uff0c\u4e0d\u8981\u5728 UI \u7ebf\u7a0b\u5199 sleep\uff0c\u53e6\u5916\u5f00\u4e00\u4e2a\u7ebf\u7a0b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266255\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : seventhbible <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ec0 \u6211\u7684\u5929\uff0c\u5927\u4f6c\u975e\u5e38\u975e\u5e38\u611f\u8c22\u60a8\u7684\u6307\u5bfc\uff01\u7ec8\u4e8e\u89e3\u51b3\u4e86\u8fd9\u4e2a\u56f0\u6270\u6211\u5f88\u4e45\u7684\u95ee\u9898\uff0c\u8c22\u8c22\u8c22\u8c22\u8c22\u8c22\uff01\u53e6\u5916\u53ef\u4ee5\u8bf7\u5927\u4f6c\u89e3\u7b54\u4e00\u4e0b daemon \u8fd9\u4e2a\u662f\u5565\u610f\u601d\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266256\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ec0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9ed8\u8ba4\u60c5\u51b5\u4e0b daemon=False <br \/>\u8fd9\u6837\u5f53\u4f60\u7684\u7a97\u53e3\u5173\u95ed\u65f6\uff0cUI \u7ebf\u7a0b\u5173\u95ed\u4e86\uff0c\u4f46\u662f event_manager \u91cc\u9762\u7684\u7ebf\u7a0b\u8fd8\u5728\u8fd0\u884c\uff0c\u7a0b\u5e8f\u6ca1\u6709\u5173\u95ed<br \/>\u4f60\u53ef\u4ee5\u8bd5\u8bd5\uff1a\u8fd0\u884c\u7a0b\u5e8f\uff0c\u5173\u95ed\u7a97\u53e3\uff0c\u4f46\u662f\u5728\u4efb\u52a1\u7ba1\u7406\u5668\u91cc\u9762\u53ef\u4ee5\u770b\u5230 python \u8fd8\u5728\u8fd0\u884c\uff0c\u53ea\u662f\u6ca1\u6709\u663e\u793a\u7a97\u53e3<br \/>daemon=True \u65f6\uff0c\u4e3b\u7ebf\u7a0b\u5173\u95ed\uff0cdaemon \u7ebf\u7a0b\u4e5f\u4f1a\u5173\u95ed                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266257\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : seventhbible <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ec0 \u539f\u6765\u5982\u6b64\uff0c\u518d\u6b21\u611f\u8c22\u5927\u4f6c\u6307\u6559\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266258\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : seventhbible <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ec0 \u5927\u4f6c\u53ef\u4ee5\u8ffd\u95ee\u4e00\u4e2a\u95ee\u9898\u561b\uff01\u5c31\u662f\u73b0\u5728\u7684\u505a\u6cd5\u662f\u628a\u5177\u4f53\u7684\u8ba2\u9605\u8005\u7684\u4e1a\u52a1\u903b\u8f91\u653e\u5230\u53e6\u5916\u4e00\u4e2a\u5b50\u7ebf\u7a0b\u53bb\u8dd1\u4e86\uff0c\u4e3b\u7ebf\u7a0b\u53ea\u7ba1 GUI \u3002\u90a3\u4e48\u5982\u4f55\u505a\u5230\u6211\u5728 GUI \u4e0a\u70b9\u51fb\u4e00\u4e2a\u6309\u94ae\u4e4b\u540e\uff0c\u5728\u5b50\u7ebf\u7a0b\u5f00\u59cb\u5904\u7406\u5177\u4f53\u7684\u4e1a\u52a1\u903b\u8f91\uff08\u8b6c\u5982 count \uff09\u4e14\u6ca1\u6709\u5904\u7406\u7ed3\u675f\u4e4b\u524d\uff0c\u9501\u4f4f\u6574\u4e2a GUI \u7684\u5176\u4ed6\u6309\u94ae\u6a21\u5757\u4e0d\u5141\u8bb8\u8fdb\u884c\u5176\u4ed6\u4e1a\u52a1\u7ebf\u7a0b\u7684\u5904\u7406\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266259\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ec0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             button[&#8220;state&#8221;] = &#8220;disabled&#8221; # \u6309\u94ae\u4e0d\u53ef\u70b9\u51fb<br \/>button[&#8220;state&#8221;] = &#8220;normal&#8221; # \u6309\u94ae\u53ef\u4ee5\u70b9\u51fb<\/p>\n<p>\u6bd4\u5982\uff0c\u4f60\u53ef\u4ee5\u5728\u4e4b\u524d\u7684 Thread(target=es.count).start() \u524d\u9762\u52a0\u4e0a<br \/>self.button[&#8220;state&#8221;] = &#8220;disabled&#8221;<\/p>\n<p>\u5728 class EventSource \u7684 count \u51fd\u6570 for \u8bed\u53e5\u7684\u540e\u9762\u52a0\u4e0a<br \/>for i in range(self._max_number):<br \/> &#8230;<br \/>gui.button[&#8220;state&#8221;] = &#8220;normal&#8221;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266260\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : seventhbible <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ec0 \u5982\u679c\u6211\u7684 GUI \u4e0a\u6709 N \u4e2a\u6309\u94ae\u7684\u8bdd\uff0c\u5c31\u662f\u6bcf\u4e2a\u6309\u94ae\u90fd\u8981\u8fd9\u6837\u8bbe\u5b9a\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266261\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : seventhbible <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u4e0d\u53ea\u662f\u6309\u94ae\uff0c\u6211\u7684 gui \u4e0a\u8fd8\u6709\u5176\u4ed6\u7684\u7c7b\u4f3c combobox\uff0ctext input entry \u6846\u7b49\u7b49\u53ef\u4ee5\u4e92\u52a8\u7684\u7ec4\u4ef6\uff0c\u5982\u679c\u60f3\u8981\u4e00\u8d77\u9501\u4f4f\uff0c\u8bf7\u95ee\u6709\u6bd4\u8f83\u901a\u7528\u7684\u65b9\u6cd5\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266262\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ec0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u554a\uff0c\u5f88\u9ebb\u70e6\uff0c\u4e0d\u8fc7\u4f60\u53ef\u4ee5\u7ed9 button \u53d6\u6709\u5e8f\u7684\u540d\u5b57\uff0c\u6bd4\u5982 button0\uff0cbutton1\uff0c\u7136\u540e<br \/>for i in range(n):<br \/>(\u7f29\u8fdb)getattr(gui, &#8220;button&#8221;+str(i))[&#8220;state&#8221;] = &#8220;disabled&#8221;<\/p>\n<p>\u6279\u91cf disable \u6309\u94ae                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266263\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ec0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u627e\u5230\u4e86\u8fd9\u6bb5\u4ee3\u7801\uff0c\u53ef\u4ee5\u6279\u91cf disable TButton\uff0c\u66f4\u901a\u7528\u4e00\u4e9b\uff0c\u6539\u9020\u4e00\u4e0b if \u8bed\u53e5\u53ef\u4ee5 disable \u5176\u4ed6\u7c7b\u578b\u7684\u63a7\u4ef6\uff0c\u4e0d\u8fc7\u4e0d\u662f\u6240\u6709\u63a7\u4ef6\u90fd\u6709 state \u5c5e\u6027\u7684<\/p>\n<p>for child in gui.winfo_children():<br \/>(\u7f29\u8fdb)if child.winfo_class() == &#8216;TButton&#8217;:<br \/>(\u7f29\u8fdb)(\u7f29\u8fdb)child[&#8216;state&#8217;] = &#8216;disabled&#8217;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266264\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : geekzhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ec0 \u6211\u53ea\u60f3\u7ed9\u8fd9\u4e48\u6709\u8010\u5fc3\u7684\u4eba\u70b9\u8d5e\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266265\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : seventhbible <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ec0 \u975e\u5e38\u611f\u8c22\u5927\u4f6c\u8fd9\u4e48\u6709\u8010\u5fc3\u5e2e\u52a9\u6211\uff01\u6211\u9a6c\u4e0a\u5c31\u53bb\u8bd5\u8bd5\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266266\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dblpx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ec0 \u70b9\u8d5e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5229\u7528\u7ebf\u7a0b\u548c\u4e8b\u4ef6\u7cfb\u7edf\u66f4\u65b0 tkint&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/340740"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=340740"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/340740\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340740"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}