You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
336 B

2 years ago
import time
def getTime():
now = time.localtime()
now_time = time.strftime("%Y-%m-%d %H:%M:%S", now)
return now_time
# 封装成layui返回数据格式 
def renderJsonForLayUI(data, count):
return {"code": 0, "msg": "", "count": count, "data": data}
if __name__ == '__main__':
print(getTime())