2

t外側のループから取得したにアクセスするにはどうすればよいですか?

{
  ['applications-' + name + t]: kp.applications[name][t]
  for name in [t for t in std.objectFields(kp.applications)]
}

My array looks something like this:

applications :
    alertmanager-bot: { 
        deployment: {...},
        service: {...},
    go-import-redirector: {
        deployment: {...},
        service: {...},

I want to loop over all the deployments/services and put them in separate keys in order to get them into separate files.

4

1 に答える 1