在Xcode Playground中打印每个数组项目? [英] Printing each array item in Xcode Playground?
本文介绍了在Xcode Playground中打印每个数组项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
循环遍历数组并在Playground中打印每个项目时,输出为(x times)
.其中x是计数.
When looping through an array and printing each item in the Playground, the output is (x times)
. Where x is the count.
除了计数以外,还有什么方法可以使Playground输出每个项目吗?
Rather than the count, is there a way to make the Playground output each item?
推荐答案
在操场上,转到菜单
查看>调试区域>显示调试区域
View > Debug Area > Show Debug Area
它将显示控制台,您可以在其中查看print
的结果.
it will show the console where you'll be able to see the result of print
.
这篇关于在Xcode Playground中打印每个数组项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文