問題タブ [pprint]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Unicode として返される pprint 辞書
requests
モジュールを使用しています。そして、返されるデータは、サーバーからの応答 (辞書) を含む Unicode です。Unicode 辞書をきれいに印刷する方法はありますか?
返されるこの応答は次のようになります。
またはこれ:
以下の方法で印刷したいと思います。
つまり、間にある json をフォーマットする必要があり、文字列はそのままにしておくことができます。
データを文字列に変換して印刷しようとしましたが、うまくいきません。