(self, text)
| 219 | 打印日志 |
| 220 | ''' |
| 221 | def log(self, text): |
| 222 | time_stamp = datetime.datetime.now() |
| 223 | print(time_stamp.strftime('%Y.%m.%d-%H:%M:%S') + ' ' + str(text)) |
| 224 | self.time =time_stamp.strftime('%H:%M:%S') |
| 225 | self.list.append("- [" + self.time + "] " + str(text) + "\n\n") |
| 226 | |
| 227 | ''' |
| 228 | 开始执行 |