self.date = QtCore.QDate.currentDate()
self.time = QtCore.QTime.currentTime()
self.updateTime = QtCore.QString(self.time.toString("hh:mm:ss AP"))
if ((self.time.second() % 2) == 0):
self.updateTime[2]= ' '
self.label.setText(self.updateTime)
Error: TypeError: file line 54: 'QString' object does not support item assignment
IAM收到此错误,如果循环,有什么解决办法吗? 新的IAM到Python知道的任何帮助....
谢谢