gpt4 book ai didi

ios - 错误是 : variables currently must have an initial value when entered at the top level of the REPL

转载 作者:行者123 更新时间:2023-11-28 10:34:58 24 4
gpt4 key购买 nike

var vb:Float
vb = 12.13
print(vb)

生成以下错误:

error: variables currently must have an initial value when entered at the top level of the REPL

最佳答案

这是个奇怪的问题,我知道当 Playground 设置为手动运行时会发生这种情况为了避免这个问题,你必须将 Playground 从手动运行设置为自动运行。

  • 按住控制台顶部的小三角形,将弹出选项
  • 第 2 步:现在从那里选择自动运行

就是这样!!!!!!

关于ios - 错误是 : variables currently must have an initial value when entered at the top level of the REPL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54059423/

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