{"id":114174,"date":"2026-10-08T13:49:08","date_gmt":"2026-10-08T05:49:08","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/114174.html"},"modified":"2026-10-08T13:49:08","modified_gmt":"2026-10-08T05:49:08","slug":"%e7%ae%80%e5%8d%95%e6%a8%a1%e6%8b%9f%e5%88%a4%e6%96%ad%e6%9c%ba%e5%99%a8%e4%ba%ba%e5%ba%94%e8%af%a5%e9%87%87%e5%8f%96%e4%bb%80%e4%b9%88%e5%8a%a8%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/114174.html","title":{"rendered":"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008054905-6ac72ed19cf0d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4ee3\u7801\u9010\u884c\u89e3\u6790<\/h3>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u300c\u6307\u4ee4\u9a71\u52a8\u79fb\u52a8\u300d\u7a0b\u5e8f&#xff1a;\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u6307\u4ee4\u4e32&#xff08;\u53ea\u542b F\/B\/L\/R&#xff09;&#xff0c;\u8ba9\u4e00\u4e2a\u70b9\u4ece\u539f\u70b9 (0, 0) \u51fa\u53d1\u9010\u6b65\u79fb\u52a8&#xff0c;\u5e76\u6253\u5370\u51fa\u5b8c\u6574\u8def\u7ebf\u3001\u6700\u7ec8\u5750\u6807\u548c\u603b\u6b65\u6570\u3002<\/p>\n<h4>1. compute_route(commands) \u2014\u2014 \u6838\u5fc3\u79fb\u52a8\u903b\u8f91<\/h4>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">compute_route<\/span><span class=\"token punctuation\">(<\/span>commands<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u6309\u6307\u4ee4\u4e32\u9010\u6b65\u79fb\u52a8&#xff0c;\u8fd4\u56de\u8bb0\u5f55\u6bcf\u4e00\u6b65\u4f4d\u7f6e\u7684\u5217\u8868\u3002&#034;&#034;&#034;<\/span><br \/>\n    x<span class=\"token punctuation\">,<\/span> y <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><br \/>\n    route <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">,<\/span> y<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> ch <span class=\"token keyword\">in<\/span> commands<span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> ch <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#039;F&#039;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            y <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token number\">1<\/span><br \/>\n        <span class=\"token keyword\">elif<\/span> ch <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#039;B&#039;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            y <span class=\"token operator\">-&#061;<\/span> <span class=\"token number\">1<\/span><br \/>\n        <span class=\"token keyword\">elif<\/span> ch <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#039;L&#039;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            x <span class=\"token operator\">-&#061;<\/span> <span class=\"token number\">1<\/span><br \/>\n        <span class=\"token keyword\">elif<\/span> ch <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#039;R&#039;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            x <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token number\">1<\/span><br \/>\n        <span class=\"token keyword\">else<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            <span class=\"token keyword\">continue<\/span><br \/>\n        route<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">,<\/span> y<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> route<\/p>\n<ul>\n<li>x, y &#061; 0, 0&#xff1a;\u521d\u59cb\u5316\u5750\u6807&#xff0c;\u4ece\u539f\u70b9\u51fa\u53d1\u3002<\/li>\n<li>route &#061; [(x, y)]&#xff1a;\u7528\u5217\u8868\u8bb0\u5f55\u8def\u7ebf&#xff0c;\u5148\u628a\u8d77\u70b9\u653e\u8fdb\u53bb\u3002<\/li>\n<li>for ch in commands&#xff1a;\u9010\u4e2a\u5b57\u7b26\u904d\u5386\u6307\u4ee4\u4e32\u3002<\/li>\n<li>\u56db\u4e2a\u65b9\u5411\u5206\u652f&#xff1a;\n<ul>\n<li>F&#xff08;Forward&#xff09;\u2192 y &#043;&#061; 1&#xff0c;\u5411\u4e0a\u8d70\u4e00\u6b65&#xff1b;<\/li>\n<li>B&#xff08;Backward&#xff09;\u2192 y -&#061; 1&#xff0c;\u5411\u4e0b\u8d70\u4e00\u6b65&#xff1b;<\/li>\n<li>L&#xff08;Left&#xff09;\u2192 x -&#061; 1&#xff0c;\u5411\u5de6\u8d70\u4e00\u6b65&#xff1b;<\/li>\n<li>R&#xff08;Right&#xff09;\u2192 x &#043;&#061; 1&#xff0c;\u5411\u53f3\u8d70\u4e00\u6b65&#xff1b;<\/li>\n<li>else: continue&#xff1a;\u9047\u5230\u5176\u4ed6\u5b57\u7b26\u76f4\u63a5\u8df3\u8fc7&#xff0c;\u4e0d\u4ea7\u751f\u79fb\u52a8\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6bcf\u6267\u884c\u4e00\u6761\u6709\u6548\u6307\u4ee4&#xff0c;\u5c31\u628a\u65b0\u5750\u6807 (x, y) \u8ffd\u52a0\u8fdb route\u3002<\/li>\n<li>\u6700\u7ec8\u8fd4\u56de route&#xff0c;\u5373\u6bcf\u4e00\u6b65\u7684\u4f4d\u7f6e\u5217\u8868\u3002<\/li>\n<\/ul>\n<h4>2. show_result(commands) \u2014\u2014 \u6253\u5370\u5b8c\u6574\u7ed3\u679c<\/h4>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">show_result<\/span><span class=\"token punctuation\">(<\/span>commands<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u8ba1\u7b97\u5e76\u6253\u5370\u4e00\u6761\u6307\u4ee4\u4e32\u7684\u5b8c\u6574\u8def\u7ebf\u4e0e\u7ed3\u679c\u3002&#034;&#034;&#034;<\/span><br \/>\n    route <span class=\"token operator\">&#061;<\/span> compute_route<span class=\"token punctuation\">(<\/span>commands<span class=\"token punctuation\">)<\/span><br \/>\n    final_x<span class=\"token punctuation\">,<\/span> final_y <span class=\"token operator\">&#061;<\/span> route<span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    steps <span class=\"token operator\">&#061;<\/span> <span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>route<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span> <span class=\"token number\">1<\/span><br \/>\n    route_text <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034; \u2192 &#034;<\/span><span class=\"token punctuation\">.<\/span>join<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;({}, {})&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>px<span class=\"token punctuation\">,<\/span> py<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">for<\/span> px<span class=\"token punctuation\">,<\/span> py <span class=\"token keyword\">in<\/span> route<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u8f93\u5165\u6307\u4ee4&#xff1a;{}&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>commands<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u8def\u7ebf&#xff1a;{}&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>route_text<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6700\u7ec8\u5750\u6807&#xff1a;({}, {})&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>final_x<span class=\"token punctuation\">,<\/span> final_y<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u603b\u6b65\u6570&#xff1a;{}&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>steps<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> final_x <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token number\">0<\/span> <span class=\"token keyword\">and<\/span> final_y <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5df2\u56de\u5230\u8d77\u70b9&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">else<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u672a\u56de\u5230\u8d77\u70b9&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;-&#034;<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">40<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>route &#061; compute_route(commands)&#xff1a;\u8c03\u7528\u4e0a\u9762\u7684\u51fd\u6570\u62ff\u5230\u5b8c\u6574\u8def\u7ebf\u3002<\/li>\n<li>final_x, final_y &#061; route[-1]&#xff1a;\u53d6\u5217\u8868\u6700\u540e\u4e00\u4e2a\u5143\u7d20&#xff0c;\u5373\u6700\u7ec8\u5750\u6807\u3002<\/li>\n<li>steps &#061; len(route) &#8211; 1&#xff1a;\u603b\u6b65\u6570 &#061; \u8def\u7ebf\u70b9\u6570 &#8211; 1&#xff08;\u53bb\u6389\u8d77\u70b9\u672c\u8eab&#xff09;\u3002<\/li>\n<li>route_text&#xff1a;\u7528 &#034; \u2192 &#034; \u628a\u6bcf\u4e2a\u5750\u6807\u70b9\u62fc\u63a5\u6210\u53ef\u8bfb\u7684\u8def\u7ebf\u5b57\u7b26\u4e32\u3002<\/li>\n<li>\u4f9d\u6b21\u6253\u5370&#xff1a;\u8f93\u5165\u6307\u4ee4\u3001\u8def\u7ebf\u3001\u6700\u7ec8\u5750\u6807\u3001\u603b\u6b65\u6570\u3002<\/li>\n<li>\u5224\u65ad\u662f\u5426\u56de\u5230\u539f\u70b9 (0, 0)&#xff0c;\u5e76\u8f93\u51fa\u5bf9\u5e94\u63d0\u793a\u3002<\/li>\n<li>print(&#034;-&#034; * 40)&#xff1a;\u6253\u5370\u5206\u9694\u7ebf&#xff0c;\u4fbf\u4e8e\u591a\u6761\u6307\u4ee4\u7ed3\u679c\u4e4b\u95f4\u533a\u5206\u3002<\/li>\n<\/ul>\n<h4>3. main() \u4e0e\u7a0b\u5e8f\u5165\u53e3<\/h4>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    commands <span class=\"token operator\">&#061;<\/span> <span class=\"token builtin\">input<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u8bf7\u8f93\u5165\u6307\u4ee4\u4e32&#xff08;\u53ea\u542b F\/B\/L\/R&#xff09;&#xff1a;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>strip<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>upper<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    show_result<span class=\"token punctuation\">(<\/span>commands<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> __name__ <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;__main__&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    main<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>input(&#8230;)&#xff1a;\u63d0\u793a\u7528\u6237\u8f93\u5165\u6307\u4ee4\u4e32\u3002<\/li>\n<li>.strip()&#xff1a;\u53bb\u6389\u9996\u5c3e\u7a7a\u767d\u5b57\u7b26\u3002<\/li>\n<li>.upper()&#xff1a;\u7edf\u4e00\u8f6c\u6210\u5927\u5199&#xff0c;\u907f\u514d\u7528\u6237\u8f93\u5165\u5c0f\u5199 f\/b\/l\/r \u65f6\u5339\u914d\u4e0d\u4e0a\u3002<\/li>\n<li>show_result(commands)&#xff1a;\u8c03\u7528\u6253\u5370\u51fd\u6570\u8f93\u51fa\u7ed3\u679c\u3002<\/li>\n<li>if __name__ &#061;&#061; &#034;__main__&#034;:&#xff1a;\u4fdd\u8bc1\u53ea\u6709\u76f4\u63a5\u8fd0\u884c\u672c\u6587\u4ef6\u65f6\u624d\u6267\u884c main()&#xff0c;\u88ab\u5176\u4ed6\u6a21\u5757\u5bfc\u5165\u65f6\u4e0d\u4f1a\u81ea\u52a8\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<h4>\u8fd0\u884c\u793a\u4f8b<\/h4>\n<p>\u8f93\u5165 FFLBR&#xff0c;\u8f93\u51fa\u5982\u4e0b&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008054906-6ac72ed2275b3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8f93\u5165FLBR&#xff0c;\u8f93\u51fa\u5982\u4e0b&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008054906-6ac72ed244966.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u907f\u969c\u51b3\u7b56\u7a0b\u5e8f\u89e3\u6790<\/h3>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e00\u4e2a\u300c\u907f\u969c\u51b3\u7b56\u300d\u7a0b\u5e8f&#xff1a;\u6839\u636e\u6bcf\u7ec4\u4f20\u611f\u5668\u6d4b\u5f97\u7684\u8ddd\u79bb\u548c\u5f53\u524d\u7535\u91cf&#xff0c;\u81ea\u52a8\u5224\u65ad\u5c0f\u8f66\u5e94\u8be5\u6267\u884c\u54ea\u79cd\u52a8\u4f5c&#xff0c;\u5e76\u7edf\u8ba1\u5404\u7c7b\u52a8\u4f5c\u7684\u6267\u884c\u6b21\u6570\u3002<\/p>\n<h4>1. \u6570\u636e\u51c6\u5907<\/h4>\n<p>distances <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">80<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">35<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">80<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">50<\/span><span class=\"token punctuation\">]<\/span><br \/>\nbatteries <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">60<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">60<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">60<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">15<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">]<\/span><br \/>\nACTIONS <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u6b63\u5e38\u524d\u8fdb&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u51cf\u901f\u524d\u8fdb&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u505c\u6b62\u907f\u969c&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u505c\u6b62\u5e76\u5145\u7535&#034;<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<ul>\n<li>distances&#xff1a;\u5217\u8868&#xff0c;\u5b58\u653e 6 \u7ec4\u969c\u788d\u7269\u8ddd\u79bb&#xff08;\u5355\u4f4d cm&#xff09;\u3002<\/li>\n<li>batteries&#xff1a;\u5217\u8868&#xff0c;\u5b58\u653e\u5bf9\u5e94\u7684 6 \u7ec4\u7535\u91cf&#xff08;\u5355\u4f4d %&#xff09;\u3002<\/li>\n<li>ACTIONS&#xff1a;\u5217\u8868&#xff0c;\u5b9a\u4e49\u56db\u79cd\u53ef\u80fd\u7684\u52a8\u4f5c\u540d\u79f0&#xff0c;\u4f9b\u540e\u7eed\u7edf\u8ba1\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<h4>2. decide_action(distance, battery) \u2014\u2014 \u51b3\u7b56\u6838\u5fc3<\/h4>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">decide_action<\/span><span class=\"token punctuation\">(<\/span>distance<span class=\"token punctuation\">,<\/span> battery<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u6839\u636e\u4e00\u7ec4&#xff08;\u8ddd\u79bb, \u7535\u91cf&#xff09;\u8fd4\u56de\u5e94\u6267\u884c\u7684\u52a8\u4f5c\u6587\u5b57\u3002&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> battery <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;\u505c\u6b62\u5e76\u5145\u7535&#034;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> distance <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;\u505c\u6b62\u907f\u969c&#034;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> distance <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">50<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;\u51cf\u901f\u524d\u8fdb&#034;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;\u6b63\u5e38\u524d\u8fdb&#034;<\/span><\/p>\n<ul>\n<li>\u51fd\u6570\u63a5\u6536\u4e24\u4e2a\u53c2\u6570&#xff1a;distance&#xff08;\u8ddd\u79bb&#xff09;\u548c battery&#xff08;\u7535\u91cf&#xff09;\u3002<\/li>\n<li>\u5224\u65ad\u987a\u5e8f\u4ece\u4e0a\u5230\u4e0b&#xff0c;\u5148\u6ee1\u8db3\u54ea\u4e2a\u6761\u4ef6\u5c31\u8fd4\u56de\u54ea\u4e2a\u52a8\u4f5c&#xff1a;\n<ul>\n<li>\u7535\u91cf\u4f4e\u4e8e 20% \u2192 \u65e0\u8bba\u8ddd\u79bb\u591a\u8fdc&#xff0c;\u90fd\u8fd4\u56de\u300c\u505c\u6b62\u5e76\u5145\u7535\u300d&#xff08;\u7535\u91cf\u4f18\u5148&#xff09;&#xff1b;<\/li>\n<li>\u8ddd\u79bb\u5c0f\u4e8e 20cm \u2192 \u969c\u788d\u7269\u592a\u8fd1&#xff0c;\u8fd4\u56de\u300c\u505c\u6b62\u907f\u969c\u300d&#xff1b;<\/li>\n<li>\u8ddd\u79bb\u5c0f\u4e8e 50cm \u2192 \u8ddd\u79bb\u8f83\u8fd1&#xff0c;\u8fd4\u56de\u300c\u51cf\u901f\u524d\u8fdb\u300d&#xff1b;<\/li>\n<li>\u5176\u4f59\u60c5\u51b5 \u2192 \u8ddd\u79bb\u5145\u8db3&#xff0c;\u8fd4\u56de\u300c\u6b63\u5e38\u524d\u8fdb\u300d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>3. main() \u2014\u2014 \u4e3b\u6d41\u7a0b<\/h4>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    stats <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span>name<span class=\"token punctuation\">:<\/span> <span class=\"token number\">0<\/span> <span class=\"token keyword\">for<\/span> name <span class=\"token keyword\">in<\/span> ACTIONS<span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> index <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">range<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>distances<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        distance <span class=\"token operator\">&#061;<\/span> distances<span class=\"token punctuation\">[<\/span>index<span class=\"token punctuation\">]<\/span><br \/>\n        battery <span class=\"token operator\">&#061;<\/span> batteries<span class=\"token punctuation\">[<\/span>index<span class=\"token punctuation\">]<\/span><br \/>\n        action <span class=\"token operator\">&#061;<\/span> decide_action<span class=\"token punctuation\">(<\/span>distance<span class=\"token punctuation\">,<\/span> battery<span class=\"token punctuation\">)<\/span><br \/>\n        stats<span class=\"token punctuation\">[<\/span>action<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token number\">1<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u7b2c{}\u7ec4&#xff1a;\u8ddd\u79bb {}cm&#xff0c;\u7535\u91cf {}%&#xff0c;\u52a8\u4f5c&#xff1a;{}&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span><br \/>\n            index <span class=\"token operator\">&#043;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> distance<span class=\"token punctuation\">,<\/span> battery<span class=\"token punctuation\">,<\/span> action<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;-&#034;<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">40<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    summary <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;&#xff0c;&#034;<\/span><span class=\"token punctuation\">.<\/span>join<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;{} {}\u6b21&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> stats<span class=\"token punctuation\">[<\/span>name<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">for<\/span> name <span class=\"token keyword\">in<\/span> ACTIONS<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u7edf\u8ba1\u7ed3\u679c&#xff1a;{}&#xff0c;\u56db\u9879\u5408\u8ba1{}\u6b21\u3002&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">format<\/span><span class=\"token punctuation\">(<\/span>summary<span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>distances<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>stats &#061; {name: 0 for name in ACTIONS}&#xff1a;\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u521b\u5efa\u7edf\u8ba1\u8868&#xff0c;\u628a\u56db\u79cd\u52a8\u4f5c\u7684\u8ba1\u6570\u90fd\u521d\u59cb\u5316\u4e3a 0\u3002<\/li>\n<li>for index in range(len(distances))&#xff1a;\u6309\u7d22\u5f15\u904d\u5386 6 \u7ec4\u6570\u636e\u3002<\/li>\n<li>distance &#061; distances[index]\u3001battery &#061; batteries[index]&#xff1a;\u6309\u76f8\u540c\u7d22\u5f15\u53d6\u51fa\u5bf9\u5e94\u7684\u8ddd\u79bb\u548c\u7535\u91cf\u3002<\/li>\n<li>action &#061; decide_action(distance, battery)&#xff1a;\u8c03\u7528\u51b3\u7b56\u51fd\u6570\u5f97\u5230\u8be5\u7ec4\u5e94\u6267\u884c\u7684\u52a8\u4f5c\u3002<\/li>\n<li>stats[action] &#043;&#061; 1&#xff1a;\u628a\u5bf9\u5e94\u52a8\u4f5c\u7684\u8ba1\u6570\u52a0 1\u3002<\/li>\n<li>print(&#8230;)&#xff1a;\u6253\u5370\u5f53\u524d\u7ec4\u7684\u7f16\u53f7\u3001\u8ddd\u79bb\u3001\u7535\u91cf\u548c\u51b3\u7b56\u7ed3\u679c\u3002<\/li>\n<li>print(&#034;-&#034; * 40)&#xff1a;\u6253\u5370\u5206\u9694\u7ebf\u3002<\/li>\n<li>summary&#xff1a;\u7528 &#034;&#xff0c;&#034;.join(&#8230;) \u628a\u56db\u79cd\u52a8\u4f5c\u7684\u7edf\u8ba1\u7ed3\u679c\u62fc\u63a5\u6210\u5b57\u7b26\u4e32\u3002<\/li>\n<li>\u6700\u540e\u6253\u5370\u7edf\u8ba1\u7ed3\u679c&#xff0c;\u5e76\u7528 len(distances) \u9a8c\u8bc1\u56db\u9879\u5408\u8ba1\u6b21\u6570\u7b49\u4e8e\u6570\u636e\u7ec4\u6570\u3002<\/li>\n<\/ul>\n<h4>4. \u7a0b\u5e8f\u5165\u53e3<\/h4>\n<p><span class=\"token keyword\">if<\/span> __name__ <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;__main__&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    main<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>\u4fdd\u8bc1\u53ea\u6709\u76f4\u63a5\u8fd0\u884c\u672c\u6587\u4ef6\u65f6\u624d\u6267\u884c main()&#xff0c;\u88ab\u5176\u4ed6\u6a21\u5757\u5bfc\u5165\u65f6\u4e0d\u4f1a\u81ea\u52a8\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<h4>\u8fd0\u884c\u7ed3\u679c\u63a8\u6f14<\/h4>\n<p>\u9010\u7ec4\u5206\u6790&#xff1a;<\/p>\n<table>\n<tr>\u7ec4\u8ddd\u79bb\u7535\u91cf\u51b3\u7b56<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>80<\/td>\n<td>60<\/td>\n<td>\u6b63\u5e38\u524d\u8fdb<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>35<\/td>\n<td>60<\/td>\n<td>\u51cf\u901f\u524d\u8fdb<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>10<\/td>\n<td>60<\/td>\n<td>\u505c\u6b62\u907f\u969c<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>80<\/td>\n<td>15<\/td>\n<td>\u505c\u6b62\u5e76\u5145\u7535<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>20<\/td>\n<td>20<\/td>\n<td>\u51cf\u901f\u524d\u8fdb<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>50<\/td>\n<td>20<\/td>\n<td>\u6b63\u5e38\u524d\u8fdb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7edf\u8ba1\u7ed3\u679c&#xff1a;\u6b63\u5e38\u524d\u8fdb 2 \u6b21&#xff0c;\u51cf\u901f\u524d\u8fdb 2 \u6b21&#xff0c;\u505c\u6b62\u907f\u969c 1 \u6b21&#xff0c;\u505c\u6b62\u5e76\u5145\u7535 1 \u6b21&#xff0c;\u56db\u9879\u5408\u8ba1 6 \u6b21\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008054906-6ac72ed263ec5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008054906-6ac72ed2c7cd7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee3\u7801\u9010\u884c\u89e3\u6790<br \/>\n\u8fd9\u6bb5\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u300c\u6307\u4ee4\u9a71\u52a8\u79fb\u52a8\u300d\u7a0b\u5e8f&#xff1a;\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u6307\u4ee4\u4e32&#xff08;\u53ea\u542b F\/B\/L\/R&#xff09;&#xff0c;\u8ba9\u4e00\u4e2a\u70b9\u4ece\u539f\u70b9 (0, 0) \u51fa\u53d1\u9010\u6b65\u79fb\u52a8&#xff0c;\u5e76\u6253\u5370\u51fa\u5b8c\u6574\u8def\u7ebf\u3001\u6700\u7ec8\u5750\u6807\u548c\u603b\u6b65\u6570\u3002<br \/>\n1. compute_route(commands) \u2014\u2014 \u6838\u5fc3\u79fb\u52a8\u903b\u8f91<br \/>\ndef compute_route(commands):\\&#8221;\\&#8221;\\&#8221;\u6309\u6307\u4ee4\u4e32\u9010\u6b65\u79fb\u52a8&#xff0c;\u8fd4\u56de\u8bb0\u5f55\u6bcf\u4e00\u6b65\u4f4d\u7f6e\u7684\u5217\u8868\u3002\\&#8221;\\&#8221;\\&#8221;x, y  0, 0r<\/p>\n","protected":false},"author":2,"featured_media":114169,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81],"topic":[],"class_list":["post-114174","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/114174.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4ee3\u7801\u9010\u884c\u89e3\u6790 \u8fd9\u6bb5\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u300c\u6307\u4ee4\u9a71\u52a8\u79fb\u52a8\u300d\u7a0b\u5e8f&#xff1a;\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u6307\u4ee4\u4e32&#xff08;\u53ea\u542b F\/B\/L\/R&#xff09;&#xff0c;\u8ba9\u4e00\u4e2a\u70b9\u4ece\u539f\u70b9 (0, 0) \u51fa\u53d1\u9010\u6b65\u79fb\u52a8&#xff0c;\u5e76\u6253\u5370\u51fa\u5b8c\u6574\u8def\u7ebf\u3001\u6700\u7ec8\u5750\u6807\u548c\u603b\u6b65\u6570\u3002 1. compute_route(commands) \u2014\u2014 \u6838\u5fc3\u79fb\u52a8\u903b\u8f91 def compute_route(commands):&quot;&quot;&quot;\u6309\u6307\u4ee4\u4e32\u9010\u6b65\u79fb\u52a8&#xff0c;\u8fd4\u56de\u8bb0\u5f55\u6bcf\u4e00\u6b65\u4f4d\u7f6e\u7684\u5217\u8868\u3002&quot;&quot;&quot;x, y 0, 0r\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/114174.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-08T05:49:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008054905-6ac72ed19cf0d.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/114174.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/114174.html\",\"name\":\"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-08T05:49:08+00:00\",\"dateModified\":\"2026-10-08T05:49:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/114174.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/114174.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/114174.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/114174.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4ee3\u7801\u9010\u884c\u89e3\u6790 \u8fd9\u6bb5\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u300c\u6307\u4ee4\u9a71\u52a8\u79fb\u52a8\u300d\u7a0b\u5e8f&#xff1a;\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u6307\u4ee4\u4e32&#xff08;\u53ea\u542b F\/B\/L\/R&#xff09;&#xff0c;\u8ba9\u4e00\u4e2a\u70b9\u4ece\u539f\u70b9 (0, 0) \u51fa\u53d1\u9010\u6b65\u79fb\u52a8&#xff0c;\u5e76\u6253\u5370\u51fa\u5b8c\u6574\u8def\u7ebf\u3001\u6700\u7ec8\u5750\u6807\u548c\u603b\u6b65\u6570\u3002 1. compute_route(commands) \u2014\u2014 \u6838\u5fc3\u79fb\u52a8\u903b\u8f91 def compute_route(commands):\"\"\"\u6309\u6307\u4ee4\u4e32\u9010\u6b65\u79fb\u52a8&#xff0c;\u8fd4\u56de\u8bb0\u5f55\u6bcf\u4e00\u6b65\u4f4d\u7f6e\u7684\u5217\u8868\u3002\"\"\"x, y 0, 0r","og_url":"https:\/\/www.wsisp.com\/helps\/114174.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-08T05:49:08+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261008054905-6ac72ed19cf0d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/114174.html","url":"https:\/\/www.wsisp.com\/helps\/114174.html","name":"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-08T05:49:08+00:00","dateModified":"2026-10-08T05:49:08+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/114174.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/114174.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/114174.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7b80\u5355\u6a21\u62df\u5224\u65ad\u673a\u5668\u4eba\u5e94\u8be5\u91c7\u53d6\u4ec0\u4e48\u52a8\u4f5c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/114174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=114174"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/114174\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/114169"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=114174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=114174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=114174"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=114174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}