Swift简明教程(一)变量与常量
学习一门新语言的时候,大家都习惯于打印“Hello,world”开始。在Swift中只需要一行代码:
println("Hello, world")" style="margin: 0px; padding: 0px; border: 0px; font-size: inherit; font-variant: inherit; font-weight: bold; line-height: inherit; vertical-align: baseline; color: rgb(110, 107, 94); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important;">println("Hello, world")
如果你曾经写过C或者Objective-C代码,应该不会对Swift的语法陌生。Swift中上面这一行就是一个完整的程序。你不需要再为输入[......]
<code class="lua hljs" data-origin=""
<code class="lua hljs" data-origin="" <code class="lua hljs" data-origin=""