你如何在swift 2中做println() [英] How do you do println() in swift 2

查看:79
本文介绍了你如何在swift 2中做println()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法在Swift 2中找到如何做 println()

I cant seem to find out how to do println() in Swift 2.

我试过了 println(helloworld)

这不起作用

helloworld是一个变量

helloworld is a variable

推荐答案

它是 print(hello world)。它在swift 2.0中有所改变,你需要看到Apple的网站。把 print()代替 println()

it's print("hello world"). it's changed in swift 2.0 and you need to see Apple's website. put print() instead of println()

这篇关于你如何在swift 2中做println()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆