【发布时间】:2021-08-01 06:48:24
【问题描述】:
基本上我有一本看起来像这样的字典。
dictionary = { 'key': [ { 'key': 'value', etc.. } etc...] }
我想要一个仅包含“价值”的列表。我很新,所以我该怎么办?谢谢。
dictionary = {
"candles":[
{
"open": 78.21,
"high": 78.28,
"low": 78.12,
"close": 78.2,
"volume": 16417,
"datetime": 1620385200000
},
{
"open": 78.19,
"high": 78.26,
"low": 78.17,
"close": 78.2,
"volume": 5928,
"datetime": 1620387000000
}
[
}
【问题讨论】:
-
请提供一些示例输入和输出。
-
@iota 当然,刚刚更新了帖子
-
预期输出是什么?
-
@iota 基本上只是数字。 [78.21、78.28、78.12、78.2 等...]
标签: python python-3.x dictionary