{"id":4101,"date":"2026-05-24T17:17:55","date_gmt":"2026-05-24T09:17:55","guid":{"rendered":""},"modified":"2026-05-24T17:17:55","modified_gmt":"2026-05-24T09:17:55","slug":"","status":"publish","type":"post","link":"https:\/\/www.souziyuan.top\/index.php\/archives\/4101","title":{"rendered":"\u6253\u5370\u673a\u5171\u4eab\u6253\u5370\u7cfb\u7edf"},"content":{"rendered":"<h3 style=\"font-family: &quot;Microsoft Yahei&quot;; box-sizing: border-box; text-size-adjust: none; margin: 0px; padding: 5px 0px 15px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); overflow-wrap: break-word; word-break: normal; position: relative; color: rgb(66, 66, 66); font-size: 18px; display: -webkit-inline-box; border-bottom: 1px solid rgb(255, 255, 255); cursor: pointer; z-index: 16; line-height: 30px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);\">\u8f6f\u4ef6\u4ecb\u7ecd<\/h3>\n<p style=\"font-family: &quot;Microsoft Yahei&quot;; box-sizing: border-box; text-size-adjust: none; margin-top: 0px; margin-bottom: 10px; padding: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); overflow-wrap: break-word; word-break: normal; line-height: 30px; color: rgb(51, 51, 51); font-size: 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);\"><span style=\"font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Tahoma, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft Yahei&quot;, Simsun, sans-serif; box-sizing: border-box; text-size-adjust: none; overflow-wrap: break-word; word-break: normal; color: rgb(68, 68, 68); font-size: 14px;\"><\/span><\/p>\n<p>\u7f51\u7edc\u6253\u5370\u670d\u52a1\u7cfb\u7edf<\/p>\n<p>\u4e00\u4e2a\u57fa\u4e8e PyQt5 \u548c Flask \u7684\u7f51\u7edc\u6253\u5370\u670d\u52a1\u7cfb\u7edf\uff0c\u652f\u6301\u591a\u7528\u6237\u901a\u8fc7\u7f51\u7edc\u4e0a\u4f20\u548c\u6253\u5370\u6587\u6863\u3001\u56fe\u7247\u7b49\u6587\u4ef6\u3002\u9002\u7528\u4e8e\u5c0f\u578b\u529e\u516c\u573a\u6240\uff0c\u4e0d\u9650\u6253\u5370\u673a\u578b\u53f7\uff0c\u53ea\u8981\u6253\u5370\u673a\u8fde\u7740\u670d\u52a1\u5668\uff0c\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u597d\u6253\u5370\u673a\u9a71\u52a8\u5373\u53ef\uff01\uff01\uff01<\/p>\n<h3 style=\"font-family: &quot;Microsoft Yahei&quot;; box-sizing: border-box; text-size-adjust: none; margin: 0px; padding: 5px 0px 15px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); overflow-wrap: break-word; word-break: normal; position: relative; color: rgb(66, 66, 66); font-size: 18px; display: -webkit-inline-box; border-bottom: 1px solid rgb(255, 255, 255); cursor: pointer; z-index: 16; line-height: 30px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);\">\u8f6f\u4ef6\u622a\u56fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.x6d.com\/uploads\/allimg\/251024\/1761315185762343.jpg\"\/><\/p>\n<h4>\u5b89\u88c5\u548c\u4f7f\u7528<\/h4>\n<p><strong>\u65b9\u6cd5\u4e00\uff1a<\/strong><\/p>\n<p>\u76f4\u63a5\u8fd0\u884cEXE\uff08\u63a8\u8350\uff09<\/p>\n<p>1. \u4e0b\u8f7d `\u7f51\u7edc\u6253\u5370\u670d\u52a1.exe` \u6587\u4ef6<\/p>\n<p>2. \u53cc\u51fb\u8fd0\u884c\uff0c\u7a0b\u5e8f\u81ea\u52a8\u68c0\u67e5\u73af\u5883\u5e76\u542f\u52a8<\/p>\n<p>3. \u9996\u6b21\u8fd0\u884c\u4f1a\u81ea\u52a8\u5b89\u88c5\u7f3a\u5931\u7684\u4f9d\u8d56\u5305<\/p>\n<p><strong>\u65b9\u6cd5\u4e8c\uff1a<\/strong><\/p>\n<p>1. \u786e\u4fdd\u5df2\u5b89\u88c5Python 3.8+<\/p>\n<p>python &#8211;version<\/p>\n<p>\u542f\u52a8\u670d\u52a1<\/p>\n<p>\u8fd0\u884c\u7a0b\u5e8f\u540e\u8bbe\u7f6e\u670d\u52a1\u7aef\u53e3\uff08\u9ed8\u8ba45000\uff09<\/p>\n<p>\u70b9\u51fb&quot;&amp;#128640; \u542f\u52a8\u670d\u52a1&quot;\u6309\u94ae<\/p>\n<p>\u7cfb\u7edf\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee\u6253\u5370\u9875\u9762<\/p>\n<p>\u7f51\u9875\u6253\u5370<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u663e\u793a\u7684\u5730\u5740<\/p>\n<p>\u62d6\u62fd\u6216\u9009\u62e9\u8981\u6253\u5370\u7684\u6587\u4ef6<\/p>\n<p>\u9009\u62e9\u76ee\u6807\u6253\u5370\u673a<\/p>\n<p>\u914d\u7f6e\u6253\u5370\u8bbe\u7f6e\uff08\u53ef\u9009\uff09<\/p>\n<p>\u70b9\u51fb\u6253\u5370\u6309\u94ae\u53d1\u9001\u4efb\u52a1<\/p>\n<p>\u5185\u7f51\u8bbf\u95ee<\/p>\n<p>\u7a0b\u5e8f\u81ea\u52a8\u68c0\u6d4b\u672c\u5730IP\u5730\u5740<\/p>\n<p>\u5c40\u57df\u7f51\u8bbe\u5907\u901a\u8fc7 http:\/\/[\u670d\u52a1\u5668IP]:\u7aef\u53e3 \u8bbf\u95ee<\/p>\n<p>\u516c\u7f51\u8bbf\u95ee<\/p>\n<p>\u52fe\u9009&quot;\u542f\u7528\u516c\u7f51\u8bbf\u95ee&quot;<\/p>\n<p>\u914d\u7f6e\u8def\u7531\u5668\u7aef\u53e3\u8f6c\u53d1<\/p>\n<p>\u8f93\u5165\u516c\u7f51\u5730\u5740\u683c\u5f0f\uff1ahttp:\/\/\u516c\u7f51IP\u6216\u57df\u540d:\u7aef\u53e3<\/p>\n<p>\u5e38\u89c1\u95ee\u9898<\/p>\n<p>\u65e0\u6cd5\u68c0\u6d4b\u6253\u5370\u673a\uff1a\u68c0\u67e5\u6253\u5370\u673a\u8fde\u63a5\u548c\u9a71\u52a8<\/p>\n<p>\u7f51\u9875\u65e0\u6cd5\u8bbf\u95ee\uff1a\u68c0\u67e5\u9632\u706b\u5899\u548c\u7aef\u53e3\u8bbe\u7f6e<\/p>\n<p>\u6253\u5370\u4efb\u52a1\u5931\u8d25\uff1a\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u4e2d\u7684\u9519\u8bef\u4fe1\u606f<\/p>\n<p>\u5982\u9047\u95ee\u9898\uff0c\u8bf7\uff1a<\/p>\n<p>\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\u4e2d\u7684\u9519\u8bef\u4fe1\u606f<\/p>\n<p>\u68c0\u67e5\u6253\u5370\u673a\u72b6\u6001\u548c\u8fde\u63a5<\/p>\n<p>\u786e\u8ba4\u7f51\u7edc\u914d\u7f6e\u6b63\u786e<\/p>\n<div class=\"article-down\" id=\"article-down\">\n<h4>\u4e0b\u8f7d\u5730\u5740<\/h4>\n<div style=\"padding:15px;background:#f5f5f5;border-radius:4px;color:#666;text-align:center;\">\n            \ud83d\udd12 \u5269\u4f59\u5185\u5bb9\u5df2\u9690\u85cf\uff0c\u8bf7<a href=\"javascript:void(0);\" onclick=\"openAeroLoginAndForceRefresh()\" style=\"color:#007bff;text-decoration:underline;cursor:pointer;\">\u70b9\u51fb\u767b\u5f55<\/a>\u540e\u67e5\u770b\u5b8c\u6574\u5185\u5bb9<\/br>(\u5df2\u767b\u5f55\u540e\u8bf7\u5237\u65b0\u9875\u9762)\n        <\/div>\n        <script>\n        function openAeroLoginAndForceRefresh() {\n            \/\/ 1. \u5148\u5524\u8d77\u4e3b\u9898\u7684\u767b\u5f55\u5f39\u7a97\n            document.getElementById(\"login-trigger\").click();\n            \n            \/\/ 2. \u5b9a\u4e49\u767b\u5f55\u6210\u529f\u540e\u7684\u5237\u65b0\u51fd\u6570\uff08\u5e26\u968f\u673a\u53c2\u6570\u5f3a\u5236\u8df3\u8fc7\u7f13\u5b58\uff09\n            function forceRefreshPage() {\n                \/\/ \u6dfb\u52a0\u65f6\u95f4\u6233\u53c2\u6570\uff0c\u5f3a\u5236\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u91cd\u65b0\u52a0\u8f7d\u9875\u9762\uff0c\u8df3\u8fc7\u6240\u6709\u7f13\u5b58\n                window.location.href = window.location.pathname + \"?t=\" + Date.now() + window.location.hash;\n            }\n            \n            \/\/ 3. \u7b2c\u4e00\u91cd\u68c0\u6d4b\uff1a\u76d1\u542cbody\u7684class\u53d8\u5316\uff08\u6807\u51c6\u60c5\u51b5\uff09\n            const classObserver = new MutationObserver(function(mutations) {\n                mutations.forEach(function(mutation) {\n                    if (mutation.target.classList.contains(\"logged-in\")) {\n                        forceRefreshPage();\n                        classObserver.disconnect();\n                        cookieObserver.disconnect();\n                        modalObserver.disconnect();\n                    }\n                });\n            });\n            \n            classObserver.observe(document.body, {\n                attributes: true,\n                attributeFilter: [\"class\"]\n            });\n            \n            \/\/ 4. \u7b2c\u4e8c\u91cd\u68c0\u6d4b\uff1a\u76d1\u542cWordPress\u767b\u5f55cookie\uff08\u6700\u53ef\u9760\uff09\n            let cookieObserver = setInterval(function() {\n                \/\/ \u68c0\u6d4b\u662f\u5426\u5b58\u5728WordPress\u767b\u5f55cookie\n                if (document.cookie.indexOf(\"wordpress_logged_in_\") !== -1) {\n                    forceRefreshPage();\n                    clearInterval(cookieObserver);\n                    classObserver.disconnect();\n                    modalObserver.disconnect();\n                }\n            }, 500); \/\/ \u6bcf500\u6beb\u79d2\u68c0\u6d4b\u4e00\u6b21\n            \n            \/\/ 5. \u7b2c\u4e09\u91cd\u68c0\u6d4b\uff1a\u76d1\u542c\u767b\u5f55\u5f39\u7a97\u5173\u95ed\u4e8b\u4ef6\uff08\u515c\u5e95\uff09\n            const modalObserver = new MutationObserver(function(mutations) {\n                mutations.forEach(function(mutation) {\n                    \/\/ \u68c0\u6d4b\u767b\u5f55\u5f39\u7a97\u662f\u5426\u88ab\u9690\u85cf\n                    const loginModal = document.getElementById(\"login-modal\");\n                    if (loginModal && window.getComputedStyle(loginModal).display === \"none\") {\n                        \/\/ \u5f39\u7a97\u5173\u95ed\u540e\u5ef6\u8fdf1\u79d2\u518d\u68c0\u6d4bcookie\uff0c\u9632\u6b62\u767b\u5f55\u8fd8\u6ca1\u5b8c\u6210\n                        setTimeout(function() {\n                            if (document.cookie.indexOf(\"wordpress_logged_in_\") !== -1) {\n                                forceRefreshPage();\n                            }\n                        }, 1000);\n                        modalObserver.disconnect();\n                    }\n                });\n            });\n            \n            \/\/ \u76d1\u542c\u767b\u5f55\u5f39\u7a97\u7684\u663e\u793a\u72b6\u6001\u53d8\u5316\n            const loginModal = document.getElementById(\"login-modal\");\n            if (loginModal) {\n                modalObserver.observe(loginModal, {\n                    attributes: true,\n                    attributeFilter: [\"style\", \"class\"]\n                });\n            }\n            \n            \/\/ 6. 15\u79d2\u540e\u81ea\u52a8\u505c\u6b62\u6240\u6709\u68c0\u6d4b\uff0c\u9632\u6b62\u5185\u5b58\u6cc4\u6f0f\n            setTimeout(function() {\n                classObserver.disconnect();\n                clearInterval(cookieObserver);\n                modalObserver.disconnect();\n            }, 15000);\n        }\n        <\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6f\u4ef6\u4ecb\u7ecd \u7f51\u7edc\u6253\u5370\u670d\u52a1\u7cfb\u7edf \u4e00\u4e2a\u57fa\u4e8e PyQt5 \u548c Flask \u7684\u7f51\u7edc\u6253\u5370\u670d\u52a1\u7cfb\u7edf\uff0c\u652f\u6301\u591a\u7528\u6237\u901a\u8fc7\u7f51\u7edc\u4e0a\u4f20\u548c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-4101","post","type-post","status-publish","format-standard","hentry","category-winruanjian"],"_links":{"self":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/4101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/comments?post=4101"}],"version-history":[{"count":0,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/4101\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/media?parent=4101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/categories?post=4101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/tags?post=4101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}