在云外壳终端中更改JSON文件

发布于 2025-01-24 15:38:06 字数 871 浏览 4 评论 0原文

这是我的文件:

$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 40.77430558, ClientID: '997', income: 44964.0106, loan: 3944.219318}]"}

我想将其更改为:

$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 30.00, ClientID: '998', income: 50000.00, loan: 20000.00}]"}

如何使用Cloud Shell终端进行操作? (在Google Cloud Platform上)

(这是Qwiklab:Vertex AI的一部分:从 https:> https:///wwwww.cloudskillskillskillsboost.google/course/course__template_templetate/333.1.llsecroute_hlsemploute_hlsemplates_hlsemploute ache = true& utm_campaign = cgc& utm_medium =网站& utm_source = gcp_training

非常感谢您的帮助

this is my file :

$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 40.77430558, ClientID: '997', income: 44964.0106, loan: 3944.219318}]"}

I want to alter it to :

$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 30.00, ClientID: '998', income: 50000.00, loan: 20000.00}]"}

How do I do that using CLOUD SHELL Terminal ? (on google cloud platform)

(this is part of a Qwiklab : Vertex AI: Predicting Loan Risk with AutoML from https://www.cloudskillsboost.google/course_templates/3?hl=es_419&locale=fr_CA&skip_cache=true&utm_campaign=cgc&utm_medium=website&utm_source=gcp_training )

Thanks a lot for your help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

有深☉意 2025-01-31 15:38:06

由于您只是在JSON文件中编辑值,因此您可以使用vim 编辑vi 编辑编辑您的文件。

Since you're just editing the values in the json file, you can use the vim editor or vi editor to edit your file.

离鸿 2025-01-31 15:38:06

这可以在Google Cloud终端中完成。要编辑/更改这些值:

  1. 单击右上角的终端上方的“打开编辑器”。
  2. 然后,您可以通过JSON文件修改值。
  3. 完成后,单击“打开终端”,然后重新运行您的最后一个脚本以注意不同的结果。

希望这有帮助!

This can be done in Google Cloud Terminal. To edit/alter those values:

  1. Click on "Open Editor" above your terminal in the top right corner.
  2. Then you modify the values via the JSON File.
  3. When finished click on "Open Terminal", then rerun your last script to notice the different outcome.

Hope this helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文