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.

26 lines
575 B

import datetime
# 删除首个
def delFirstDouHao(str):
if str is not None and len(str) > 0 and str[0]==',':
str = str[1:]
return str
# 功能:根据表名获取类名
def getClassName(tableName):
if tableName.index('t_') == 0:
className = tableName[2:]
list = className.split('_')
className = ''
for l in list:
className = className + l.capitalize()
return className
# 黄海定义的输出信息的办法,带当前时间
def logInfo(msg):
i = datetime.datetime.now()
print(" %s %s" % (i, msg))