- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用场景:
从串口读取连续数据(实时)并显示在 PyQt GUI 上,并将数据存储在 csv 文件中。
我尝试使用While循环。 <-- 由于调用阻塞而不起作用。
所以,二手我尝试过QtCore.QTimer.singleShot(1, methodname)。哪个抛出递归异常。
我的代码:
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\TUK\Master Thesis\ML\Lable_Data.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import traceback
import os
import sys
import serial
import atexit
import time
write_path = "recording_folder1/"
port = "COM6" # COM for windows, it changes when we use unix system
#ser = serial.Serial(port, 115200, timeout=None)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(850, 568)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("C:/Users/HackoMan/Google Drive/MasterThesis/Code/QtDesigner/Icon/research4-1.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.DataLabelingTabObj = QtWidgets.QTabWidget(self.centralwidget)
self.DataLabelingTabObj.setObjectName("DataLabelingTabObj")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.formLayoutWidget = QtWidgets.QWidget(self.tab)
self.formLayoutWidget.setGeometry(QtCore.QRect(10, 10, 811, 481))
self.formLayoutWidget.setObjectName("formLayoutWidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.formLayoutWidget)
self.gridLayout_2.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
self.gridLayout_2.setObjectName("gridLayout_2")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.startCaptureBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.startCaptureBtn.setObjectName("startCaptureBtn")
self.horizontalLayout.addWidget(self.startCaptureBtn)
self.stopCaptureBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.stopCaptureBtn.setEnabled(False)
self.stopCaptureBtn.setObjectName("stopCaptureBtn")
self.horizontalLayout.addWidget(self.stopCaptureBtn)
self.gridLayout_2.addLayout(self.horizontalLayout, 3, 1, 1, 1)
self.fileNameLabel = QtWidgets.QLabel(self.formLayoutWidget)
self.fileNameLabel.setObjectName("fileNameLabel")
self.gridLayout_2.addWidget(self.fileNameLabel, 0, 0, 1, 1)
self.fileNameLineEdit = QtWidgets.QLineEdit(self.formLayoutWidget)
self.fileNameLineEdit.setObjectName("fileNameLineEdit")
self.gridLayout_2.addWidget(self.fileNameLineEdit, 0, 1, 1, 1)
self.label = QtWidgets.QLabel(self.formLayoutWidget)
self.label.setObjectName("label")
self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1)
self.classLabelLabel = QtWidgets.QLabel(self.formLayoutWidget)
self.classLabelLabel.setObjectName("classLabelLabel")
self.gridLayout_2.addWidget(self.classLabelLabel, 1, 0, 1, 1)
self.classLabelLineEdit = QtWidgets.QLineEdit(self.formLayoutWidget)
self.classLabelLineEdit.setObjectName("classLabelLineEdit")
self.gridLayout_2.addWidget(self.classLabelLineEdit, 1, 1, 1, 1)
self.sensorTextEdit = QtWidgets.QTextEdit(self.formLayoutWidget)
self.sensorTextEdit.setReadOnly(True)
self.sensorTextEdit.setObjectName("sensorTextEdit")
self.gridLayout_2.addWidget(self.sensorTextEdit, 2, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_2.setObjectName("label_2")
self.gridLayout_2.addWidget(self.label_2, 3, 0, 1, 1)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.resetBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.resetBtn.setObjectName("resetBtn")
self.horizontalLayout_8.addWidget(self.resetBtn)
self.closeBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.closeBtn.setObjectName("closeBtn")
self.horizontalLayout_8.addWidget(self.closeBtn)
self.gridLayout_2.addLayout(self.horizontalLayout_8, 4, 1, 1, 1)
self.DataLabelingTabObj.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.DataLabelingTabObj.addTab(self.tab_2, "")
self.gridLayout.addWidget(self.DataLabelingTabObj, 0, 1, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.DataLabelingTabObj.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
self.addButtonOperations()
self.addFiledsValidators()
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Data Collection"))
self.startCaptureBtn.setToolTip(_translate("MainWindow", "click to capture the sensor data"))
self.startCaptureBtn.setWhatsThis(_translate("MainWindow", "click to capture the sensor data"))
self.startCaptureBtn.setText(_translate("MainWindow", "Start"))
self.stopCaptureBtn.setText(_translate("MainWindow", "Stop"))
self.fileNameLabel.setText(_translate("MainWindow", "FileName"))
self.label.setText(_translate("MainWindow", "Sensor Data"))
self.classLabelLabel.setText(_translate("MainWindow", "ClassLabel"))
self.label_2.setText(_translate("MainWindow", "Capture Sensor Data"))
self.resetBtn.setText(_translate("MainWindow", "Reset"))
self.closeBtn.setText(_translate("MainWindow", "Close"))
self.DataLabelingTabObj.setTabText(self.DataLabelingTabObj.indexOf(self.tab), _translate("MainWindow", "Data labeling"))
self.DataLabelingTabObj.setTabText(self.DataLabelingTabObj.indexOf(self.tab_2), _translate("MainWindow", "Classifier"))
def addButtonOperations(self):
self.closeBtn.clicked.connect(self.closeWindow)
self.resetBtn.clicked.connect(self.resetFields)
self.startCaptureBtn.clicked.connect(self.startCaptureBtnPressedEvent)
self.stopCaptureBtn.clicked.connect(self.stopCaptureSensorData)
def addFiledsValidators(self):
regexp = QtCore.QRegExp('[a-zA-Z0-9_ -]+')
validator = QtGui.QRegExpValidator(regexp)
self.fileNameLineEdit.setValidator(validator)
self.classLabelLineEdit.setValidator(validator)
def captureSensorData(self, file):
current_label = self.classLabelLineEdit.text()
# new_line = ser.readline().decode('utf-8').rstrip()
new_line = "test1, Test2, Test3"
new_line = new_line + ',' + current_label + '\n'
file.write(new_line)
file.flush()
self.sensorTextEdit.append(new_line)
self.sensorTextEdit.repaint()
if not self.startCaptureBtn.isEnabled():
QtCore.QTimer.singleShot(1, self.captureSensorData(file))
else:
file.close()
def startCaptureBtnPressedEvent(self):
try:
if(self.isValidFields()):
# capture the sensor data
print("#capturing the sensor data")
self.startCaptureBtn.setEnabled(False)
self.stopCaptureBtn.setEnabled(True)
self.startCaptureBtn.repaint()
self.stopCaptureBtn.repaint()
file = self.openFileForWriting() # Create/Open file for saving sensor data
if not self.startCaptureBtn.isEnabled():
QtCore.QTimer.singleShot(1, self.captureSensorData(file))
else:
# throw error message
print("#throw error message")
msgBox = QtWidgets.QMessageBox()
msgBox.setText("Please fill the required fields ")
msgBox.setWindowTitle("Warning !! ")
msgBox.setIcon(QtWidgets.QMessageBox.Warning)
msgBox.exec()
except:
traceback.print_exc()
def openFileForWriting(self):
os.makedirs(os.path.dirname(write_path), exist_ok=True)
file_name = self.fileNameLineEdit.text()
file_name = write_path + file_name + ".csv"
file = open(file_name, 'a')
return file
def stopCaptureSensorData(self):
# stop capture the sensor data
print("# stop capturing the sensor data")
self.startCaptureBtn.setEnabled(True)
self.stopCaptureBtn.setEnabled(False)
self.startCaptureBtn.repaint()
self.stopCaptureBtn.repaint()
def isValidFields(self):
if(self.fileNameLineEdit.text().__len__()<=0 or self.classLabelLineEdit.text().__len__()<=0):
return False
else:
return True
def resetFields(self):
self.fileNameLineEdit.clear()
self.classLabelLineEdit.clear()
self.sensorTextEdit.clear()
def closeWindow(self):
QtCore.QCoreApplication.instance().quit()
def releaseResource(self):
print("Release Resources !!! ")
#if ser.isOpen():
# ser.close()
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
atexit.register(ui.releaseResource)
sys.exit(app.exec_())
如果您执行类似的操作(例如读取数据库数据并在 GUI 上显示...等),或者是否有人在 pyqt 中找到了解决方案,请告诉我。
最佳答案
根据上面的评论之一,我在没有任何参数的情况下尝试过,问题已解决。使用captureSensorData而不是captureSensorData(file)
解决方案:
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\TUK\Master Thesis\ML\Lable_Data.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
import traceback
import os
import sys
import serial
import atexit
write_path = "recording_folder1/"
port = "COM6" # COM for windows, it changes when we use unix system
ser = serial.Serial(port, 115200, timeout=None)
file = None
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(850, 568)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("C:/Users/HackoMan/Google Drive/MasterThesis/Code/QtDesigner/Icon/research4-1.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.DataLabelingTabObj = QtWidgets.QTabWidget(self.centralwidget)
self.DataLabelingTabObj.setObjectName("DataLabelingTabObj")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.formLayoutWidget = QtWidgets.QWidget(self.tab)
self.formLayoutWidget.setGeometry(QtCore.QRect(10, 10, 811, 481))
self.formLayoutWidget.setObjectName("formLayoutWidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.formLayoutWidget)
self.gridLayout_2.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
self.gridLayout_2.setObjectName("gridLayout_2")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.startCaptureBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.startCaptureBtn.setObjectName("startCaptureBtn")
self.horizontalLayout.addWidget(self.startCaptureBtn)
self.stopCaptureBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.stopCaptureBtn.setEnabled(False)
self.stopCaptureBtn.setObjectName("stopCaptureBtn")
self.horizontalLayout.addWidget(self.stopCaptureBtn)
self.gridLayout_2.addLayout(self.horizontalLayout, 3, 1, 1, 1)
self.fileNameLabel = QtWidgets.QLabel(self.formLayoutWidget)
self.fileNameLabel.setObjectName("fileNameLabel")
self.gridLayout_2.addWidget(self.fileNameLabel, 0, 0, 1, 1)
self.fileNameLineEdit = QtWidgets.QLineEdit(self.formLayoutWidget)
self.fileNameLineEdit.setObjectName("fileNameLineEdit")
self.gridLayout_2.addWidget(self.fileNameLineEdit, 0, 1, 1, 1)
self.label = QtWidgets.QLabel(self.formLayoutWidget)
self.label.setObjectName("label")
self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1)
self.classLabelLabel = QtWidgets.QLabel(self.formLayoutWidget)
self.classLabelLabel.setObjectName("classLabelLabel")
self.gridLayout_2.addWidget(self.classLabelLabel, 1, 0, 1, 1)
self.classLabelLineEdit = QtWidgets.QLineEdit(self.formLayoutWidget)
self.classLabelLineEdit.setObjectName("classLabelLineEdit")
self.gridLayout_2.addWidget(self.classLabelLineEdit, 1, 1, 1, 1)
self.sensorTextEdit = QtWidgets.QTextEdit(self.formLayoutWidget)
self.sensorTextEdit.setReadOnly(True)
self.sensorTextEdit.setObjectName("sensorTextEdit")
self.gridLayout_2.addWidget(self.sensorTextEdit, 2, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(self.formLayoutWidget)
self.label_2.setObjectName("label_2")
self.gridLayout_2.addWidget(self.label_2, 3, 0, 1, 1)
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.resetBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.resetBtn.setObjectName("resetBtn")
self.horizontalLayout_8.addWidget(self.resetBtn)
self.closeBtn = QtWidgets.QPushButton(self.formLayoutWidget)
self.closeBtn.setObjectName("closeBtn")
self.horizontalLayout_8.addWidget(self.closeBtn)
self.gridLayout_2.addLayout(self.horizontalLayout_8, 4, 1, 1, 1)
self.DataLabelingTabObj.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.DataLabelingTabObj.addTab(self.tab_2, "")
self.gridLayout.addWidget(self.DataLabelingTabObj, 0, 1, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.DataLabelingTabObj.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
self.addButtonOperations()
self.addFiledsValidators()
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Data Collection"))
self.startCaptureBtn.setToolTip(_translate("MainWindow", "click to capture the sensor data"))
self.startCaptureBtn.setWhatsThis(_translate("MainWindow", "click to capture the sensor data"))
self.startCaptureBtn.setText(_translate("MainWindow", "Start"))
self.stopCaptureBtn.setText(_translate("MainWindow", "Stop"))
self.fileNameLabel.setText(_translate("MainWindow", "FileName"))
self.label.setText(_translate("MainWindow", "Sensor Data"))
self.classLabelLabel.setText(_translate("MainWindow", "ClassLabel"))
self.label_2.setText(_translate("MainWindow", "Capture Sensor Data"))
self.resetBtn.setText(_translate("MainWindow", "Reset"))
self.closeBtn.setText(_translate("MainWindow", "Close"))
self.DataLabelingTabObj.setTabText(self.DataLabelingTabObj.indexOf(self.tab), _translate("MainWindow", "Data labeling"))
self.DataLabelingTabObj.setTabText(self.DataLabelingTabObj.indexOf(self.tab_2), _translate("MainWindow", "Classifier"))
def addButtonOperations(self):
self.closeBtn.clicked.connect(self.closeWindow)
self.resetBtn.clicked.connect(self.resetFields)
self.startCaptureBtn.clicked.connect(self.startCaptureBtnPressedEvent)
self.stopCaptureBtn.clicked.connect(self.stopCaptureSensorData)
def addFiledsValidators(self):
regexp = QtCore.QRegExp('[a-zA-Z0-9_ -]+')
validator = QtGui.QRegExpValidator(regexp)
self.fileNameLineEdit.setValidator(validator)
self.classLabelLineEdit.setValidator(validator)
def captureSensorData(self):
try:
current_label = self.classLabelLineEdit.text()
#new_line = ser.readline().decode('utf-8').rstrip()
new_line = "test1, Test2, Test3"
new_line = new_line + ',' + current_label + '\n'
self.file.write(new_line)
self.file.flush()
self.sensorTextEdit.append(new_line)
self.sensorTextEdit.repaint()
if not self.startCaptureBtn.isEnabled():
QtCore.QTimer.singleShot(1, self.captureSensorData)
else:
self.file.close()
except:
traceback.print_exc()
def startCaptureBtnPressedEvent(self):
try:
if(self.isValidFields()):
# capture the sensor data
print("#capturing the sensor data")
self.startCaptureBtn.setEnabled(False)
self.stopCaptureBtn.setEnabled(True)
self.startCaptureBtn.repaint()
self.stopCaptureBtn.repaint()
self.file = self.openFileForWriting() # Create/Open file for saving sensor data
if not self.startCaptureBtn.isEnabled():
QtCore.QTimer.singleShot(1, self.captureSensorData)
else:
# throw error message
print("#throw error message")
msgBox = QtWidgets.QMessageBox()
msgBox.setText("Please fill the required fields ")
msgBox.setWindowTitle("Warning !! ")
msgBox.setIcon(QtWidgets.QMessageBox.Warning)
msgBox.exec()
except:
traceback.print_exc()
def openFileForWriting(self):
os.makedirs(os.path.dirname(write_path), exist_ok=True)
file_name = self.fileNameLineEdit.text()
file_name = write_path + file_name + ".csv"
file = open(file_name, 'a')
return file
def stopCaptureSensorData(self):
# stop capture the sensor data
print("# stop capturing the sensor data")
self.startCaptureBtn.setEnabled(True)
self.stopCaptureBtn.setEnabled(False)
self.startCaptureBtn.repaint()
self.stopCaptureBtn.repaint()
def isValidFields(self):
if(self.fileNameLineEdit.text().__len__()<=0 or self.classLabelLineEdit.text().__len__()<=0):
return False
else:
return True
def resetFields(self):
self.fileNameLineEdit.clear()
self.classLabelLineEdit.clear()
self.sensorTextEdit.clear()
def closeWindow(self):
QtCore.QCoreApplication.instance().quit()
def releaseResource(self):
print("Release Resources !!! ")
if ser.isOpen():
ser.close()
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
atexit.register(ui.releaseResource)
sys.exit(app.exec_())
关于python - PyQT实时显示串口数据在QtCore.QTimer.singleShot()上抛出最大递归深度超出异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51234288/
在Mac上编译QT工程,遇到如下错误 ld: file not found: QtCore.framework/Versions/4/QtCore for architecture x86_64 这不
我正在用 C++ 编写多线程程序,并计划使用 QThread .问题是当我尝试 #include ...我得到一个错误... Cannot find include file QtCore. 什么给
我正在尝试从源代码构建一个包,./configure 告诉我缺少 QtCore 包。一直在谷歌搜索并尝试 apt-get 但没有成功。请帮忙。 最佳答案 它叫做 libqt4-core在 Debian
我正在尝试将 Qt 用作库(类似于 this ),因为我想在一些当前非 Qt 应用程序中重用 Qt 类,并在共享库中作为跨平台胶水。一切都是非 GUI 的。 DirectConnection 可以轻松
我正在尝试构建两个库:一个是静态的,一个是共享的。问题出在静态库上。我有以下文件夹: src/ db/ dbal.h dbal.pro dll/ Distributio
是否有可与 PyQT4 一起使用的信号列表,或者至少有一个与lostFocus()相反的信号列表? 最佳答案 “QWidget”生成了一个 QFocusEvent 事件,但不是信号。然而,有一个方便的
在我的项目中,QtCreator 让我可以: #include // include all core #include 但不是 #include 我有一个 .pro 文件,其中有 QT +=
我已经从源代码构建了 PyQt4,一切都很顺利,直到我尝试使用 QtCore 中的一些类和属性。由于某种原因,QtCore 缺少许多本应存在的功能和数据。例如,从 PyQt4.QtCore impor
我正在尝试使用 QtCore.Signal 将类的新实例发送到对象的父级。我正在尝试做的事情如下,但失败了: NameError: name 'myClass' is not defined clas
我一直在尝试安装 torch,但在运行 ./install.sh 时出现以下错误 CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:6
我正在尝试使用 pyinstaller 的 --onefile 选项构建我的应用程序。这是摘录。 import sys from PyQt4 import QtGui, QtCore from mod
我的项目使用 cmake 试图寻找已安装的 QT4: root@netqa1:~# which qmake /usr/bin/qmake root@netqa1:~# ls -l /usr/lib/i
我在这个 windows 7 32 位上安装了 python3.3 x86(官方 python.org 安装程序) 然后从这里为 python3.3 windows x86 安装 PyQt4-4.10
这是我的 keyPressEvent def keyPressEvent(self , e): key = e.key() if key == QtCore.Qt.Key_Escape
我正在尝试让旧的 qt 项目再次运行。我相信它是用 QT4.x 编写的,我现在正在使用 QT 5.5。 *.pro 文件看起来有点像这样: ##############################
所以我正在尝试使用 QT Creator 创建一个 dll。我去了new project -> libary -> C++ libary -> choose .它自动生成一个头文件 global前缀和
我遇到了一个类似于帖子的奇怪的 stackoverflow 崩溃: here QMutex 试图递归地 self 锁定然后导致崩溃...调用栈是这样的: ...(mor
代码: class Text(QtGui.QLabel): def __init__(self,parent): QtGui.QLabel.__init__(self,pare
我想通过具有不同参数的相同函数检查多个 QtGui.QLineEdits 中的用户输入。我尝试了 QtCore.SignalMapper。这是我在测试应用程序中的代码: self.signal
我有 Windows 8.1 机器,安装了两个 Python 3.4.4 和 3.2.2在 python 3.4.4 中一切看起来都很好 Python 3.4.2 (v3.4.2:ab2c023a94
我是一名优秀的程序员,十分优秀!