パイソンNameError:名「偽」が定義されていません

このコード行は、エラーを実行します、NameError:名「偽」が定義されていません

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

あなたは解決するために次の2行のコードを使用することができます。

 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

おすすめ

転載: www.cnblogs.com/wanthune/p/11752762.html