{"id":16769,"date":"2025-12-20T18:51:34","date_gmt":"2025-12-20T10:51:34","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/3860\/?p=16769"},"modified":"2025-12-20T18:55:47","modified_gmt":"2025-12-20T10:55:47","slug":"%e6%83%b3%e8%b2%b7%e5%ae%9c%e8%98%ad%e5%b8%82%e6%96%b0%e5%bb%ba%e6%a1%88","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/3860\/2025\/12\/20\/%e6%83%b3%e8%b2%b7%e5%ae%9c%e8%98%ad%e5%b8%82%e6%96%b0%e5%bb%ba%e6%a1%88\/","title":{"rendered":"\u60f3\u8cb7\u5b9c\u862d\u5e02\u65b0\u5efa\u6848"},"content":{"rendered":"<p><\/p>\n<p><code>\t<\/p>\n<li>\n<ol>\n<ul>\n<ins datetime=\"2025-12-20T10:53:33+00:00\"><del datetime=\"2025-12-20T10:53:33+00:00\"><\/p>\n<blockquote><p><em><strong># Generating decision flowchart for choosing between \u5fa1\u677e\u5712 and \u5b9c\u862d\u5e02\u4e00\u822c\u5efa\u6848 import matplotlib.pyplot as plt import matplotlib.patches as mpatches from matplotlib import rcParams import matplotlib.patheffects as path_effects # Set style plt.style.use('seaborn-v0_8-whitegrid') rcParams['figure.figsize'] = (12, 10) fig, ax = plt.subplots() ax.axis('off') # Define nodes and positions nodes = { \"start\": (\"\u4f60\u662f\u8cb7\u65b9\uff0c\u60f3\u8cb7\u5b9c\u862d\u5e02\u65b0\u5efa\u6848\", (0.5, 1.0)), \"q1\": (\"\u4f60\u662f\u9996\u8cfc\u65cf\u6216\u9810\u7b97\u6709\u9650\u55ce\uff1f\", (0.5, 0.85)), \"q2\": (\"\u4f60\u91cd\u8996\u5efa\u6750\u54c1\u8cea\u8207\u4fdd\u56fa\u55ce\uff1f\", (0.3, 0.7)), \"q3\": (\"\u4f60\u559c\u6b61\u793e\u5340\u751f\u6d3b\u8207\u516c\u8a2d\u9f4a\u5168\u55ce\uff1f\", (0.7, 0.7)), \"q4\": (\"\u4f60\u662f\u70ba\u4e86\u6295\u8cc7\u6216\u51fa\u79df\u55ce\uff1f\", (0.3, 0.55)), \"q5\": (\"\u4f60\u91cd\u8996\u4ed8\u6b3e\u5b89\u5168\u55ce\uff1f\", (0.7, 0.55)), \"q6\": (\"\u4f60\u91cd\u8996\u5730\u6bb5\u4fbf\u5229\u55ce\uff1f\", (0.5, 0.4)), \"\u5fa1\u677e\u5712\": (\"\u2705 \u9069\u5408\uff1a\u5fa1\u677e\u5712\", (0.7, 0.25)), \"\u5b9c\u862d\u5efa\u6848\": (\"\u2705 \u9069\u5408\uff1a\u5b9c\u862d\u5e02\u4e00\u822c\u5efa\u6848\", (0.3, 0.25)), } # Draw nodes for key, (text, pos) in nodes.items(): ax.text(pos[0], pos[1], text, ha='center', va='center', bbox=dict(boxstyle=\"round,pad=0.5\", fc=\"lightblue\" if \"\u9069\u5408\" in text else \"white\", ec=\"black\"), fontsize=10, path_effects=[path_effects.withStroke(linewidth=1, foreground=\"black\")]) # Draw arrows def draw_arrow(from_node, to_node, text=None, offset=(0, 0)): x0, y0 = nodes[from_node][1] x1, y1 = nodes[to_node][1] ax.annotate(\"\", xy=(x1, y1), xycoords='data', xytext=(x0, y0), textcoords='data', arrowprops=dict(arrowstyle=\"-&gt;\", lw=1.5)) if text: ax.text((x0 + x1)\/2 + offset[0], (y0 + y1)\/2 + offset[1], text, fontsize=9, ha='center') # Arrows from start draw_arrow(\"start\", \"q1\") # q1 draw_arrow(\"q1\", \"\u5b9c\u862d\u5efa\u6848\", \"\u662f\", offset=(-0.1, 0.02)) draw_arrow(\"q1\", \"q2\", \"\u5426\", offset=(0.1, 0.02)) # q2 draw_arrow(\"q2\", \"\u5fa1\u677e\u5712\", \"\u662f\", offset=(-0.1, 0.02)) draw_arrow(\"q2\", \"q4\", \"\u5426\", offset=(0.1, 0.02)) # q3 draw_arrow(\"q3\", \"\u5fa1\u677e\u5712\", \"\u662f\", offset=(0.1, 0.02)) draw_arrow(\"q3\", \"q5\", \"\u5426\", offset=(-0.1, 0.02)) # q4 draw_arrow(\"q4\", \"\u5b9c\u862d\u5efa\u6848\", \"\u662f\", offset=(-0.1, 0.02)) draw_arrow(\"q4\", \"q3\", \"\u5426\", offset=(0.1, 0.02)) # q5 draw_arrow(\"q5\", \"\u5fa1\u677e\u5712\", \"\u662f\", offset=(0.1, 0.02)) draw_arrow(\"q5\", \"q6\", \"\u5426\", offset=(-0.1, 0.02)) # q6 draw_arrow(\"q6\", \"\u5b9c\u862d\u5efa\u6848\", \"\u662f\", offset=(-0.1, 0.02)) draw_arrow(\"q6\", \"\u5fa1\u677e\u5712\", \"\u5426\", offset=(0.1, 0.02)) # Save figure output_path = \"\/mnt\/data\/\u5fa1\u677e\u5712_\u5b9c\u862d\u5efa\u6848_\u6c7a\u7b56\u6d41\u7a0b\u5716.png\" plt.savefig(output_path, bbox_inches='tight') print(\"\u5df2\u5efa\u7acb\u5fa1\u677e\u5712\u8207\u5b9c\u862d\u5e02\u5efa\u6848\u7684\u6c7a\u7b56\u6d41\u7a0b\u5716\uff0c\u6a94\u6848\u540d\u7a31\u70ba\uff1a\u5fa1\u677e\u5712_\u5b9c\u862d\u5efa\u6848_\u6c7a\u7b56\u6d41\u7a0b\u5716.png\")<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":114,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16769","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"meta_key":{"_edit_lock":["1766228007:114"],"_edit_last":["114"],"_wp_page_template":["default"],"_encloseme":["1"],"wp_statistics_words_count":["240"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/posts\/16769"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/users\/114"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/comments?post=16769"}],"version-history":[{"count":2,"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/posts\/16769\/revisions"}],"predecessor-version":[{"id":16771,"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/posts\/16769\/revisions\/16771"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/media?parent=16769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/categories?post=16769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/3860\/wp-json\/wp\/v2\/tags?post=16769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}