TypeError: not all arguments converted during string formatting

问题描述

logging打印日志的时候,出现TypeError: not all arguments converted during string formatting错误。
logging问题错误解决:TypeError: not all arguments converted during string formatting
xx_sample是一个字符串列表,按说没什么问题,但是确实是出现了这个问题。


问题解决

logger.info("defect_sample : ", defect_sample)
改为:
logger.info(“defect_sample={}”.format(defect_sample))


2019.10.10
希望能帮到你。


相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-07-14
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-08-26
相关资源
相似解决方案