当使用记录器时
Import logging
logging.info(
f"This is a \nid: {id}", \
f"\nclaim number: {claim_number}")
导致错误TypeError: not all arguments converted during string formatting ,而
print(
f"This is a \nid: {id}", \
f"\nclaim number: {claim_number}")
工作正常
我想知道使用记录器执行此操作的最巧妙方法是什么,有多行,所以我想按每个项目的行拆分它们
鸿蒙传说
相关分类