调用日志输出错误: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])

  

猜你喜欢

转载自www.cnblogs.com/Gaoqiking/p/11095213.html