|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 怡儿三思吾 于 2020-3-9 21:24 编辑
list_pool = [
{
Id: 2,
Name: "体验资源池2",
ProviderId: "c87e2267-1001-4c70-bb2a-ab41f3b81aa3",
UserId: "",
UserName: "",
Env: "2",
CreateTime: "2017-02-15T11:28:12+08:00",
UpdateTime: "2018-07-04T10:41:57+08:00",
ExpireDuration: 32486400,
Description: "体验2",
IsDefault: 0,
IsFree: 0,
Type: 1,
Ecs: "3"
},
{
Id: 52,
Name: "test1",
ProviderId: "158678b8-6099-427b-a3a3-f7f26e1bf7a0",
UserId: "",
UserName: "",
Env: "1",
CreateTime: "2017-04-07T14:57:33+08:00",
UpdateTime: "2017-04-07T14:57:33+08:00",
ExpireDuration: 86400,
Description: "",
IsDefault: 0,
IsFree: 0,
Type: 1,
Ecs: "3"
}
]
获取关键字“ProviderId”这段怎么获取????
使用以下方法只能获取到第一个
str2 = "ProviderId"
print(pool_list.find(str2)后面的获取不到。
|
|