gpt4 book ai didi

nim-lang - 如何使用 nim 脚本从标准输入读取?

转载 作者:行者123 更新时间:2023-12-04 23:17:42 25 4
gpt4 key购买 nike

我将如何通过 nimscript 从标准输入读取?

我试过:

if readLine(stdin) == "yes":
exec buildCommand

我已经用 运行了脚本
nim c build.nims

我收到

build.nims(50, 13) Error: undeclared identifier: 'stdin'

最佳答案

我认为 nimscript 不支持从 stdin 读取刚刚。

您可能希望为此创建一个功能请求:https://github.com/nim-lang/Nim/issues

关于nim-lang - 如何使用 nim 脚本从标准输入读取?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36103424/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com