猿问

如何循环和打印json字符串中每个键的所有值?

m = [{"text":"mamamia","speaker":"","id":0},{"text":"mamamia","speaker":"","id":1},{"text":"mamamia","speaker":"","id":2},{"text":"mamamia","speaker":"","id":3},{"text":"mamamia","speaker":"","id":4},{"text":"mamamia","speaker":"","id":5}]

我想打印“ id”的所有值。从0 -5开始。然后将其更改为6-11。然后将新值附加到旧值并将其保存。有可能做到吗?


隔江千里
浏览 235回答 3
3回答
随时随地看视频慕课网APP

相关分类

Python
我要回答