gpt4 book ai didi

user-input - Rebol 命令行的基本输入

转载 作者:行者123 更新时间:2023-12-03 17:21:55 24 4
gpt4 key购买 nike

我目前正在学习 Rebol。

在我知道的其他语言中,我可以从命令行读取输入,例如在 Java 中:

Scanner sc = new Scanner(System.in)
sc.nextLine();

在 C# 中

Console.ReadLine();

在 C 中

scanf("%s", s);

我想知道如何在 Rebol 中完成同样的事情。

最佳答案

您可以使用 input 命令在控制台请求输入。

>> name: input
Joe
== "Joe"

关于user-input - Rebol 命令行的基本输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15032916/

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