- change : 适配 python3 代码
This commit is contained in:
parent
c198288020
commit
615d378d3b
@ -1,7 +1,11 @@
|
|||||||
# encoding: UTF-8
|
# 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 threading import Thread
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
@ -74,7 +74,7 @@ class VtServer(RpcServer):
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def printLog(content):
|
def printLog(content):
|
||||||
"""打印日志"""
|
"""打印日志"""
|
||||||
print(datetime.now().strftime("%H:%M:%S"), '\t', content)
|
print("%s\t%s" % (datetime.now().strftime("%H:%M:%S"), content))
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user