- change : 适配 python3 代码

This commit is contained in:
lamter 2017-04-27 21:27:29 +08:00
parent c198288020
commit 615d378d3b
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,11 @@
# encoding: UTF-8
# 系统模块
from Queue import Queue, Empty
try:
from Queue import Queue, Empty
except:
from queue import Queue, Empty
from threading import Thread
from time import sleep
from collections import defaultdict

View File

@ -74,7 +74,7 @@ class VtServer(RpcServer):
#----------------------------------------------------------------------
def printLog(content):
"""打印日志"""
print(datetime.now().strftime("%H:%M:%S"), '\t', content)
print("%s\t%s" % (datetime.now().strftime("%H:%M:%S"), content))
#----------------------------------------------------------------------