我如何访问t
,这是我从外循环得到的东西?
{
['applications-' + name + t]: kp.applications[name][t]
for name in [t for t in std.objectFields(kp.applications)]
}
我的数组看起来像这样:
applications :
alertmanager-bot: {
deployment: {...},
service: {...},
go-import-redirector: {
deployment: {...},
service: {...},
我想遍历所有部署/服务并将它们放在单独的键中,以便将它们放入单独的文件中。