pyqt时间格式化
from PyQt5.QtCore import QDateTime currentDateTime = QDateTime.currentDateTime() print(currentDateTime.toString("yyyy-MM-dd hh:mm:ss"))
######################