使用python 如何去掉 json 文件 key的双引号?

早啊
  • 18
resource "openstack_blockstorage_volume_v3" "test-disk-data" {
  "availability_zone" = "${format(\"az%d#iscsi-ssd\", floor(count.index / 2) % \"${var.az_num}\" + 1)}"  
  "size" = 500  
  "timeouts" = {
    "delete" = "5m"  
    "create" = "20m"
  }  
  "name" = "${format(\"test-disk-data-%02d\", count.index+1)}"  
  "volume_type" = "iscsi-ssd"  
  "count" = 3  
  "scheduler_hints" = {
    "same_host" = [
      "${openstack_blockstorage_volume_v3.test-disk-sys[floor(count.index / 2)].id}"
    ]
  }
}

如上,如何使用python去掉key所带的双引号,希望大佬指导个方向

回复
阅读 244
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏