执行这行代码会报错,NameError: name 'false' is not defined

 response_content =  {"result":false,"returnCode":"500","message":"失败"}

你可以使用下面这两行代码来解决:

 false = False
 response_content =  {"result":false,"returnCode":"500","message":"失败"}

参考:https://www.e-learn.cn/content/wangluowenzhang/666425
https://stackoverflow.com/questions/28843876/nulls-instead-of-nones-in-json-data-with-python/28843950#28843950

相关文章:

  • 2021-06-21
  • 2021-08-26
  • 2021-09-24
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案