AttributeError
Created by: tuzhirun
AttributeError: module 'paddlex' has no attribute 'log_level'
def log(level=2, message="", use_color=False): current_time = time.time() time_array = time.localtime(current_time) current_time = time.strftime("%Y-%m-%d %H:%M:%S", time_array) if paddlex.log_level >= level: if use_color: print("\033[1;31;40m{} [{}]\t{}\033[0m".format(current_time, levels[ level], message).encode("utf-8").decode("latin1")) else: print("{} [{}]\t{}".format(current_time, levels[level], message) .encode("utf-8").decode("latin1")) sys.stdout.flush()
if paddlex.log_level >= level: 这句报错了怎么回事