操场消息 "number of times"

playground message "number of times"

我在swift操场上玩。我在屏幕右侧收到一条有趣的消息(10 次),但无法确定其含义。它看起来像这样:

该消息描述了特定 line/block 代码在单次执行 playground 模拟器时 运行 的次数,运行 一直在后台运行。

表示for循环迭代。您可以通过查看->显示助手编辑器->显示助手Editor.loops检查控制台中的实际输出,迭代显示如图

所示