参考他人CSDN PyQt5+socket编程界面卡住未响应 解决这个问题 加上线程 th = threading.Thread(target=self.*, args=(*, *)) th.start()