调用日志输出错误:TypeError: 'int' object is not callable

 logging.INFO('%s'%frames[0:3])

  错误信息:

Traceback (most recent call last):
  File "Visualization_bubble_sort.py", line 81, in <module>
    plt,_=draw_chart(od)
  File "Visualization_bubble_sort.py", line 27, in draw_chart
    logging.INFO('%s'%frames[0:3])
TypeError: 'int' object is not callable

  原因,应该把INFO改为小写

 logging.info('%s'%frames[0:3])

  

上一篇:JavaWeb之异步处理请求


下一篇:[JAVA]多线程之实现Callable接口