{"id":2526,"date":"2025-05-20T18:00:21","date_gmt":"2025-05-20T10:00:21","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/"},"modified":"2025-05-20T18:00:21","modified_gmt":"2025-05-20T10:00:21","slug":"%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/","title":{"rendered":"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"markdown_views prism-atom-one-dark\" id=\"content_views\">\n  <svg style=\"display: none;\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n   <path d=\"M5,0 0,2.5 5,5z\" id=\"raphael-marker-block\" stroke-linecap=\"round\" style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);\">\n   <\/path>\n  <\/svg><\/p>\n<pre><code>_translate = QtCore.QCoreApplication.translate\nMainWindow.setWindowTitle(_translate(\"MainWindow\", \"MainWindow\"))\nself.pushButton.setText(_translate(\"MainWindow\", \"\u4ece\u672c\u5730\u9009\u62e9\"))\nself.groupBox.setTitle(_translate(\"MainWindow\", \"\u9884\u89c8\"))\nself.pushButton_2.setText(_translate(\"MainWindow\", \"\u5e94\u7528\"))\nself.pushButton_3.setText(_translate(\"MainWindow\", \"\u5173\u95ed\u58c1\u7eb8\"))\nself.pushButton_4.setText(_translate(\"MainWindow\", \"\u5728\u7ebf\u8d44\u6e90\"))\n<\/code><\/pre>\n<pre><code>\nUI\u5b9e\u73b0\u6548\u679c\u5982\u4e0b\uff1a  \n ![\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0](https:\/\/img-blog.csdnimg.cn\/cca0fe687ba74af4afed4fa31c213894.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_Q1NETiBARHJhZ29u5bCR5bm0,size_15,color_FFFFFF,t_70,g_se,x_16)  \n UI\u5e03\u5c40\u8bbe\u8ba1\u5b8c\u6210\uff0c\u4e0b\u9762\u6211\u4eec\u5f00\u59cb\u8fdb\u884c\u89c6\u9891\u8bfb\u53d6\u52a0\u8f7d\u3001\u9884\u89c8\u529f\u80fd\u5b9e\u73b0\u3002\n\n\n##### 2. \u89c6\u9891\u52a0\u8f7d\u9884\u89c8\n\n\n\u63a5\u6765\u4e0b\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u559c\u6b22\u7684\u89c6\u9891\uff0c\u4ece\u672c\u5730\u8bfb\u53d6\u89c6\u9891\uff0c\u5e76\u4e14\u5c06\u89c6\u9891\u9884\u89c8\u64ad\u653e\u663e\u793a\u3002\u8fd9\u91cc\u89c6\u9891\u6f14\u793a\uff0c\u535a\u4e3b\u8fd8\u662f\u7528\u4e4b\u524d\u7684\u90a3\u7bc7[\u7d2b\u989c\u5c0f\u59d0\u59d0\u7684\u8df3\u821e\u89c6\u9891]( )\u8fdb\u884c\u6f14\u793a\u3002\n\n\n**\u8bfb\u53d6\u89c6\u9891\uff1a**\n\n\n\u8bfb\u53d6\u89c6\u9891\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846\uff0c\u9009\u62e9\u89c6\u9891\u8d44\u6e90\uff0c\u5f00\u542f\u4e00\u4e2a\u5b50\u7ebf\u7a0b\u7528\u6765\u8fdb\u884c\u89c6\u9891\u5f00\u542f\u505c\u6b62\u64ad\u653e\u3002\u6838\u5fc3\u4ee3\u7801\u5982\u4e0b\uff1a\n\n\n\n<\/code><\/pre>\n<h2>\n   <a id=\"author_CSDNDragon_29\"><br \/>\n   <\/a><br \/>\n   author\uff1a CSDN-Dragon\u5c11\u5e74<br \/>\n  <\/h2>\n<p>\n   def openmp4(self):<br \/>\n   <br \/>\n   try:<br \/>\n   <br \/>\n   global path<br \/>\n   <br \/>\n   path, filetype = QFileDialog.getOpenFileName(None, \u201c\u9009\u62e9\u6587\u4ef6\u201d, \u2018.\u2019,<br \/>\n   <br \/>\n   \u201c\u89c6\u9891\u6587\u4ef6(*.AVI;*.mov;*.rmvb;*.rm;*.FLV;*.mp4;*.3GP)\u201d) # ;;All Files (*)<br \/>\n   <br \/>\n   if path == \u201c\u201d: # \u672a\u9009\u62e9\u6587\u4ef6<br \/>\n   <br \/>\n   return\n  <\/p>\n<pre><code>    self.slotStart()\n    t = Thread(target=self.Stop)\n    t.start()  # \u542f\u52a8\u7ebf\u7a0b\uff0c\u5373\u8ba9\u7ebf\u7a0b\u5f00\u59cb\u6267\u884c\nexcept Exception as e:\n    print (e)\n<\/code><\/pre>\n<pre><code>\n**\u89c6\u9891\u6d41\u8bfb\u53d6\u64ad\u653e\uff1a**\n\n\n\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u89c6\u9891\u6587\u4ef6\u8fdb\u884c\u6309\u5e27\u8bfb\u53d6\u52a0\u8f7d\u663e\u793a\uff0c\u5e76\u901a\u8fc7\u8ba1\u65f6\u5668\u5b9e\u73b0\u52a8\u753b\u6548\u679c\u3002\u6838\u5fc3\u4ee3\u7801\u5982\u4e0b\uff1a\n\n\n\n<\/code><\/pre>\n<h2>\n   <a id=\"authorCSDNDragon_54\"><br \/>\n   <\/a><br \/>\n   author\uff1aCSDN-Dragon\u5c11\u5e74<br \/>\n  <\/h2>\n<p>\n   def slotStart(self):<br \/>\n   <br \/>\n   videoName = path<br \/>\n   <br \/>\n   if videoName != \u201c\u201d: # \u201c\u201d\u4e3a\u7528\u6237\u53d6\u6d88<br \/>\n   <br \/>\n   self.cap = cv2.VideoCapture(videoName)<br \/>\n   <br \/>\n   self.timer_camera.start(50)<br \/>\n   <br \/>\n   self.timer_camera.timeout.connect(self.openFrame)\n  <\/p>\n<pre><code>\n\n<\/code><\/pre>\n<h2>\n   <a id=\"authorCSDNDragon_66\"><br \/>\n   <\/a><br \/>\n   author\uff1aCSDN-Dragon\u5c11\u5e74<br \/>\n  <\/h2>\n<p>\n   def openFrame(self):<br \/>\n   <br \/>\n   if (self.cap.isOpened()):<br \/>\n   <br \/>\n   ret, self.frame = self.cap.read()<br \/>\n   <br \/>\n   if ret:<br \/>\n   <br \/>\n   frame = cv2.cvtColor(self.frame, cv2.COLOR_BGR2RGB)<br \/>\n   <br \/>\n   if self.detectFlag == True:<br \/>\n   <br \/>\n   # \u68c0\u6d4b\u4ee3\u7801self.frame<br \/>\n   <br \/>\n   self.label_num.setText(\u201cThere are &#8221; + str(5) + &#8221; people.\u201d)<br \/>\n   <br \/>\n   height, width, bytesPerComponent = frame.shape<br \/>\n   <br \/>\n   bytesPerLine = bytesPerComponent * width<br \/>\n   <br \/>\n   q_image = QImage(frame.data, width, height, bytesPerLine,<br \/>\n   <br \/>\n   QImage.Format_RGB888).scaled(self.label.width(), self.label.height())<br \/>\n   <br \/>\n   self.label.setPixmap(QPixmap.fromImage(q_image))<br \/>\n   <br \/>\n   else:<br \/>\n   <br \/>\n   self.cap.release()<br \/>\n   <br \/>\n   self.timer_camera.stop() # \u505c\u6b62\u8ba1\u65f6\u5668\n  <\/p>\n<pre><code>\n\u81f3\u6b64\uff0c\u6211\u4eec\u5df2\u7ecf\u53ef\u4ee5\u5b9e\u73b0\u89c6\u9891\u8bfb\u53d6\u52a0\u8f7d\uff0c\u5e76\u4e14\u8fdb\u884c\u89c6\u9891\u9884\u89c8\u4e86\uff0c\u6548\u679c\u5982\u4e0b\uff1a\n\n\n![\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0](https:\/\/img-blog.csdnimg.cn\/c41bf90b5e744ded9934f79f40060742.gif)\n\n\n##### 3. \u52a8\u6001\u58c1\u7eb8\u529f\u80fd\u5b9e\u73b0\n\n\n\u5b9e\u73b0\u684c\u9762\u58c1\u7eb8\u66ff\u6362\uff0c\u6211\u4eec\u9996\u5148\u9700\u8981\u83b7\u53d6\u684c\u9762\u53e5\u67c4\u627e\u5230\u684c\u9762\u7a97\u4f53\uff0c\u8986\u5199\u684c\u9762\u7a97\u4f53\u3001\u8c03\u7528\u52a0\u8f7d\u7684\u89c6\u9891\u6d41\uff0c\u64ad\u653e\u52a8\u6001\u58c1\u7eb8\u3002\n\n\n**\u83b7\u53d6\u684c\u9762\u53e5\u67c4\uff1a**\n\n\n\n<\/code><\/pre>\n<h2>\n   <a id=\"authorCSDNDragon_103\"><br \/>\n   <\/a><br \/>\n   author\uff1aCSDN-Dragon\u5c11\u5e74<br \/>\n  <\/h2>\n<p>\n   def pretreatmentHandle():<br \/>\n   <br \/>\n   hwnd = win32gui.FindWindow(\u201cProgman\u201d, \u201cProgram Manager\u201d)<br \/>\n   <br \/>\n   win32gui.SendMessageTimeout(hwnd, 0x052C, 0, None, 0, 0x03E8)<br \/>\n   <br \/>\n   hwnd_WorkW = None<br \/>\n   <br \/>\n   while 1:<br \/>\n   <br \/>\n   hwnd_WorkW = win32gui.FindWindowEx(None, hwnd_WorkW, \u201cWorkerW\u201d, None)<br \/>\n   <br \/>\n   if not hwnd_WorkW:<br \/>\n   <br \/>\n   continue<br \/>\n   <br \/>\n   hView = win32gui.FindWindowEx(hwnd_WorkW, None, \u201cSHELLDLL_DefView\u201d, None)<br \/>\n   <br \/>\n   # print(&#8216;hwmd_hView: &#8216;, hView)<br \/>\n   <br \/>\n   if not hView:<br \/>\n   <br \/>\n   continue<br \/>\n   <br \/>\n   h = win32gui.FindWindowEx(None, hwnd_WorkW, \u201cWorkerW\u201d, None)<br \/>\n   <br \/>\n   while h:<br \/>\n   <br \/>\n   win32gui.SendMessage(h, 0x0010, 0, 0) # WM_CLOSE<br \/>\n   <br \/>\n   h = win32gui.FindWindowEx(None, hwnd_WorkW, \u201cWorkerW\u201d, None)<br \/>\n   <br \/>\n   break<br \/>\n   <br \/>\n   return hwnd\n  <\/p>\n<pre><code>\n**\u684c\u9762\u8986\u5199\uff1a**\n\n\n\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7c7b\uff0c\u5bf9\u7a97\u4f53\u8fdb\u884c\u7ee7\u627f\uff0c\u8fdb\u884c\u89c6\u9891\u6d41\u52a0\u8f7d\u8bfb\u53d6\u64ad\u653e\u3002\u6838\u5fc3\u4ee3\u7801\u5982\u4e0b\uff1a\n\n\n\n<\/code><\/pre>\n<h2>\n   <a id=\"author_CSDNDragon_133\"><br \/>\n   <\/a><br \/>\n   author\uff1a CSDN-Dragon\u5c11\u5e74<br \/>\n  <\/h2>\n<p>\n   class MyMainWindow(QMainWindow, Ui_MainWindow):<br \/>\n   <br \/>\n   def __init__(self, parent=None):<br \/>\n   <br \/>\n   super(MyMainWindow, self).<br \/>\n   <strong><br \/>\n    init<br \/>\n   <\/strong><br \/>\n   (parent)<br \/>\n   <br \/>\n   self.ui = Ui_MainWindow()<br \/>\n   <br \/>\n   self.ui.setupUi(self)<br \/>\n   <br \/>\n   self.player = QMediaPlayer()<br \/>\n   <br \/>\n   self.player.setNotifyInterval(10000)<br \/>\n   <br \/>\n   self.player.setVideoOutput(self.ui.videowidget)<br \/>\n   <br \/>\n   self.player.setMuted(bool(1 &#8211; self.player.isMuted()))<br \/>\n   <br \/>\n   self.setWindowFlags(Qt.FramelessWindowHint)<br \/>\n   <br \/>\n   self.setupUi(self)<br \/>\n   <br \/>\n   self.go()\n  <\/p>\n<pre><code># author\uff1a CSDN-Dragon\u5c11\u5e74\ndef go(self):\n    self.ui.videowidget.setFullScreen(True)\n\n    with open(\".\/filename.txt\", 'r', encoding='utf-8') as f:\n        file_name = f.read()\n        if file_name =='':\n            file_name = 'lkf.mp4'\n    print (file_name)\n    if not os.path.exists(file_name):\n        sys.exit()\n    media = QMediaContent(QUrl(file_name))\n    self.player.setMedia(media)\n    self.mplayList = QMediaPlaylist()\n    self.mplayList.addMedia(QMediaContent(QUrl.fromLocalFile(file_name)))\n    self.player.setPlaylist(self.mplayList)\n    self.mplayList.setPlaybackMode(QMediaPlaylist.CurrentItemInLoop)\n    win_hwnd = int(self.winId())\n    video_h = int(self.ui.videowidget.winId())\n    win32gui.SetParent(win_hwnd, h)\n    win32gui.SetParent(video_h, h)\n    win32gui.SetParent(video_h, win_hwnd)\n    self.player.play()\n<\/code><\/pre>\n<pre><code>\n\u8fd9\u91cc\u6211\u4eec\u628a\u4e0a\u9762\u7684py\u6587\u4ef6\u76f4\u63a5\u6253\u5305\u6210exe\u6587\u4ef6\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u5728\u201c\u5e94\u7528\u201d\u63a7\u4ef6\u4e0a\u8fdb\u884c\u4e8b\u4ef6\u7ed1\u5b9a\uff0c\u76f4\u63a5\u8c03\u7528exe\u6267\u884c\uff0c\u5b9e\u73b0\u52a8\u6001\u58c1\u7eb8\u64ad\u653e\u5e94\u7528\u529f\u80fd\u3002\u6838\u5fc3\u4ee3\u7801\u5982\u4e0b\uff1a\n\n\n\n<\/code><\/pre>\n<h2>\n   <a id=\"author_CSDNDragon_179\"><br \/>\n   <\/a><br \/>\n   author\uff1a CSDN-Dragon\u5c11\u5e74<br \/>\n  <\/h2>\n<p>\n   def play(self):<br \/>\n   <br \/>\n   if path == \u2018\u2019:<br \/>\n   <br \/>\n   reply = QtWidgets.QMessageBox.question(self, \u2018\u63d0\u793a\u2019,<br \/>\n   <br \/>\n   \u201c\u672a\u52a0\u8f7d\u9009\u62e9\u89c6\u9891\u201d,<br \/>\n   <br \/>\n   QtWidgets.QMessageBox.Yes)<br \/>\n   <br \/>\n   return<br \/>\n   <br \/>\n   with open(\u201c.\/filename.txt\u201d, \u2018w\u2019, encoding=\u2018utf-8\u2019) as f:<br \/>\n   <br \/>\n   f.truncate(0)<br \/>\n   <br \/>\n   print(f.write(str(path)))<br \/>\n   <br \/>\n   try:<br \/>\n   <br \/>\n   try:<br \/>\n   <br \/>\n   call(\u2018taskkill \/F \/IM play.exe\u2019)<br \/>\n   <br \/>\n   except:<br \/>\n   <br \/>\n   pass<br \/>\n   <br \/>\n   os.system(\u2018start play.exe\u2019)<br \/>\n   <br \/>\n   except:<br \/>\n   <br \/>\n   pass<br \/>\n   <br \/>\n   try:<br \/>\n   <br \/>\n   if self.cap != []:<br \/>\n   <br \/>\n   self.cap.release()<br \/>\n   <br \/>\n   self.timer_camera.stop() # \u505c\u6b62\u8ba1\u65f6\u5668<br \/>\n   <br \/>\n   else:<br \/>\n   <br \/>\n   Warming = QMessageBox.warning(self, \u201cWarming\u201d, \u201cPush the left upper corner button to Quit.\u201d,<br \/>\n   <br \/>\n   QMessageBox.Yes)<br \/>\n   <br \/>\n   except:<br \/>\n   <br \/>\n   pass\n  <\/p>\n<pre><code>\n\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u5b8c\u6210\u4e86\u52a8\u6001\u58c1\u7eb8\u52a0\u8f7d\u5e94\u7528\u529f\u80fd\u4e86\uff0c\u6548\u679c\u5982\u4e0b\uff1a  \n ![\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0](https:\/\/img-blog.csdnimg.cn\/fb215f8c835342618775073b802e5e68.gif)\n\n\n##### 4. \u5173\u95ed\u52a8\u6001\u58c1\u7eb8\n\n\n\u6700\u540e\u6211\u4eec\u518d\u5b9e\u73b0\u4e0b\u5f53\u524d\u52a8\u6001\u58c1\u7eb8\u64ad\u653e\u5173\u95ed\u529f\u80fd\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u5f53\u524d\u684c\u9762\u89c6\u9891\u64ad\u653e\u8fdb\u884c\u91ca\u653e\u53d6\u6d88\u3002\u4ee3\u7801\u5982\u4e0b\uff1a\n\n\n\n<\/code><\/pre>\n<h2>\n   <a id=\"authorCSDNDragon_221\"><br \/>\n   <\/a><br \/>\n   author\uff1aCSDN-Dragon\u5c11\u5e74<br \/>\n  <\/h2>\n<p>\n   def close_wall(self):<br \/>\n   <br \/>\n   try:<br \/>\n   <br \/>\n   call(\u2018taskkill \/F \/IM play.exe\u2019)<br \/>\n   <br \/>\n   except:<br \/>\n   <br \/>\n   pass\n  <\/p>\n<pre><code>\n\u6548\u679c\u5982\u4e0b\uff1a  \n ![\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0](https:\/\/img-blog.csdnimg.cn\/0761c4a6f0ed4c2ea7fb5c767bd2ae15.gif)\n\n\n\u81f3\u6b64\uff0c\u6574\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u684c\u9762\u58c1\u7eb8\u529f\u80fd\u5c31\u5168\u90e8\u5b8c\u6210\u4e86\uff0c\u4e0b\u9762\u6211\u4eec\u4e00\u8d77\u8fd0\u884c\u4e0b\u770b\u770b\u52a8\u6001\u58c1\u7eb8\u6548\u679c\u3002\n\n\n\n\n\n\n\n\n**\u6e90\u7801\u53ca\u6570\u636e\u5df2\u4e0a\u4f20\uff0c\u5173\u6ce8\u6587\u672b\u516c\u4f17\u53f7\u56de\u590d\u3010\u6e90\u7801\u3011\u5373\u53ef\u83b7\u53d6\u5b8c\u6574\u6e90\u7801**\n\n\n\n&gt; \n&gt; Python\u5f80\u671f\u7cbe\u5f69\uff1a\n&gt; \n&gt; \n&gt; * [\u89c1\u8fc7\u4ed9\u5973\u8e66\u8fea\u5417\uff1f\u4e00\u8d77\u7528python\u505a\u4e2a\u5c0f\u4ed9\u5973\u4ee3\u7801\u8e66\u8fea\u89c6\u9891]( )\n&gt; * [python\u81ea\u5236\u4e00\u6b3e\u70ab\u9177\u97f3\u4e50\u64ad\u653e\u5668\uff0c\u60f3\u542c\u5565\u968f\u4fbf\u641c\uff01]( )\n&gt; * [\u6597\u5730\u4e3b\u8001\u662f\u8f93\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2aAI\u51fa\u724c\u5668\uff0c\u8c46\u5b50\u8e6d\u8e6d\u6da8\uff01]( )\n\n\n### \u6700\u540e\n\n\u4e0d\u77e5\u9053\u4f60\u4eec\u7528\u7684\u4ec0\u4e48\u73af\u5883\uff0c\u6211\u4e00\u822c\u90fd\u662f\u7528\u7684Python3.6\u73af\u5883\u548cpycharm\u89e3\u91ca\u5668\uff0c\u6ca1\u6709\u8f6f\u4ef6\uff0c\u6216\u8005\u6ca1\u6709\u8d44\u6599\uff0c\u6ca1\u4eba\u89e3\u7b54\u95ee\u9898\uff0c\u90fd\u53ef\u4ee5\u514d\u8d39\u9886\u53d6\uff08\u5305\u62ec\u4eca\u5929\u7684\u4ee3\u7801\uff09\uff0c\u8fc7\u51e0\u5929\u6211\u8fd8\u4f1a\u505a\u4e2a\u89c6\u9891\u6559\u7a0b\u51fa\u6765\uff0c\u6709\u9700\u8981\u4e5f\u53ef\u4ee5\u9886\u53d6~  \n\n\u7ed9\u5927\u5bb6\u51c6\u5907\u7684\u5b66\u4e60\u8d44\u6599\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a  \n\nPython \u73af\u5883\u3001pycharm\u7f16\u8f91\u5668\/\u6c38\u4e45\u6fc0\u6d3b\/\u7ffb\u8bd1\u63d2\u4ef6  \n\npython \u96f6\u57fa\u7840\u89c6\u9891\u6559\u7a0b  \n\nPython \u754c\u9762\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b  \n\nPython \u722c\u866b\u5b9e\u6218\u6559\u7a0b  \n\nPython \u6570\u636e\u5206\u6790\u5b9e\u6218\u6559\u7a0b  \n\npython \u6e38\u620f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b  \n\nPython \u7535\u5b50\u4e66100\u672c  \n\nPython \u5b66\u4e60\u8def\u7ebf\u89c4\u5212\n\n![](https:\/\/img-blog.csdnimg.cn\/d29631674929476f9c3b30f7ff58dff0.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2ZlaTM0Nzc5NTc5MA==,size_16,color_FFFFFF,t_70)\n\n\n\n\n**\u7f51\u4e0a\u5b66\u4e60\u8d44\u6599\u4e00\u5927\u5806\uff0c\u4f46\u5982\u679c\u5b66\u5230\u7684\u77e5\u8bc6\u4e0d\u6210\u4f53\u7cfb\uff0c\u9047\u5230\u95ee\u9898\u65f6\u53ea\u662f\u6d45\u5c1d\u8f84\u6b62\uff0c\u4e0d\u518d\u6df1\u5165\u7814\u7a76\uff0c\u90a3\u4e48\u5f88\u96be\u505a\u5230\u771f\u6b63\u7684\u6280\u672f\u63d0\u5347\u3002**\n\n**[\u9700\u8981\u8fd9\u4efd\u7cfb\u7edf\u5316\u5b66\u4e60\u8d44\u6599\u7684\u670b\u53cb\uff0c\u53ef\u4ee5\u6233\u8fd9\u91cc\u65e0\u507f\u83b7\u53d6](https:\/\/bbs.csdn.net\/topics\/618317507)**\n\n**\u4e00\u4e2a\u4eba\u53ef\u4ee5\u8d70\u7684\u5f88\u5feb\uff0c\u4f46\u4e00\u7fa4\u4eba\u624d\u80fd\u8d70\u7684\u66f4\u8fdc\uff01\u4e0d\u8bba\u4f60\u662f\u6b63\u4ece\u4e8bIT\u884c\u4e1a\u7684\u8001\u9e1f\u6216\u662f\u5bf9IT\u884c\u4e1a\u611f\u5174\u8da3\u7684\u65b0\u4eba\uff0c\u90fd\u6b22\u8fce\u52a0\u5165\u6211\u4eec\u7684\u7684\u5708\u5b50\uff08\u6280\u672f\u4ea4\u6d41\u3001\u5b66\u4e60\u8d44\u6e90\u3001\u804c\u573a\u5410\u69fd\u3001\u5927\u5382\u5185\u63a8\u3001\u9762\u8bd5\u8f85\u5bfc\uff09\uff0c\u8ba9\u6211\u4eec\u4e00\u8d77\u5b66\u4e60\u6210\u957f\uff01**\n<\/code><\/pre>\n<\/p><\/div>\n<link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/markdown_views-a5d25dd831.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/style-e504d6a974.css\" rel=\"stylesheet\"\/>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>_translate = QtCore.QCoreApplication.translate MainWind [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2526","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136-3\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"_translate = QtCore.QCoreApplication.translate MainWind [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136-3\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-20T10:00:21+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\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@wunen\" \/>\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\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f\",\"datePublished\":\"2025-05-20T10:00:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/\"},\"wordCount\":368,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u52a8\u6001\u58c1\u7eb8\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/\",\"name\":\"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-05-20T10:00:21+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.wunen.com\/#website\",\"url\":\"http:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"http:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","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":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136-3\/","og_locale":"zh_CN","og_type":"article","og_title":"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"_translate = QtCore.QCoreApplication.translate MainWind [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136-3\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-05-20T10:00:21+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/"},"author":{"name":"admin@wunen","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f","datePublished":"2025-05-20T10:00:21+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/"},"wordCount":368,"commentCount":0,"publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u52a8\u6001\u58c1\u7eb8"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/","name":"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"http:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-05-20T10:00:21+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/20\/%e6%a1%8c%e9%9d%a2%e5%a4%aa%e5%8d%95%e8%b0%83%ef%bc%9f%e4%b8%80%e8%b5%b7%e7%94%a8python%e5%81%9a%e4%b8%aa%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8%e6%80%81%e5%a3%81%e7%ba%b8%ef%bc%8c%e7%ab%9f%e7%84%b6-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"\u684c\u9762\u592a\u5355\u8c03\uff1f\u4e00\u8d77\u7528Python\u505a\u4e2a\u81ea\u5b9a\u4e49\u52a8\u6001\u58c1\u7eb8\uff0c\u7adf\u7136\u8fd8\u53ef\u4ee5\u653e\u89c6\u9891\uff01_pyqt5\u6f02\u4eae\u754c\u9762\u52a8\u6001\u80cc\u666f"}]},{"@type":"WebSite","@id":"http:\/\/www.wunen.com\/#website","url":"http:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"http:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"http:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/2526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=2526"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/2526\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=2526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=2526"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=2526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}