gpt4 book ai didi

lolcode - 表达式开头的关键字无效(笑)

转载 作者:行者123 更新时间:2023-12-01 16:03:26 24 4
gpt4 key购买 nike

我刚开始使用 LOLCODE。我尝试编写一个程序来测试输入是否为 NUMBR,但我在第 13 行的表达式开头收到错误关键字无效 (IM OUTTA YR LOOP)。Hese是我的代码。请帮忙。谢谢。

I HAS A VARIABLE 
I HAS A ITERATOR ITZ 0
I HAS A TRUTH
IM IN YR LOOP UPPIN YR ITERATOR WILE DIFFRINT TRUTH AN "WIN"
VISIBLE "GIMMEH NUMBR"
GIMMEH VARIABLE
VARIABLE IS NOW A NUMBR, O RLY?
YA RLY
I HAS A TRUTH ITZ "FAIL"
GTFO
NO WAI
VISIBLE "HOW U FAIL SIMPL INSTUCTINS"
IM OUTTA YR LOOP

最佳答案

您的 if 语句末尾缺少 OIC

VARIABLE IS NOW A NUMBR, O RLY?
YA RLY
I HAS A TRUTH ITZ "FAIL"
GTFO
NO WAI
VISIBLE "HOW U FAIL SIMPL INSTUCTINS"
OIC

参见:https://github.com/justinmeza/lolcode-spec/blob/master/v1.2/lolcode-spec-v1.2.md#if-then

关于lolcode - 表达式开头的关键字无效(笑),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49478067/

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