刚完成U3D的RPG游戏制作,最近又在研究一个插件,CameeraPath, 感觉蛮叼的,很多游戏都用到了这个插件,插件原理就是插值运算。这里我就不说了,今天学完C#,突然就想研究一下苹果的最新编程语言Swift ,不学不知道啊,一下就喜欢上了,苹果确实是叼。下面我就说下xcode 里面怎么来写swift的Hello,world


打开xcode  在APPlication 下创建一个Command line Tool 


第一次接触swift苹果语言


然后在我们新建的脚本里面写



import Foundation


println("Hello, World!")  //打印 Hello ,World


let max=10    //常量

var cur=10   //变量

var end=0   //变量


end=max+cur


println(end) //打印效果

println(cur)


输出结果第一次接触swift苹果语言


感觉有点想Lua 的感觉,是不是很酷

转载于:https://blog.51cto.com/5152481/1612723

相关文章:

  • 2021-09-08
  • 2022-01-01
  • 2021-09-08
  • 2021-04-27
  • 2021-12-25
  • 2021-10-02
  • 2021-06-17
  • 2021-06-14
猜你喜欢
  • 2021-05-27
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-01-12
  • 2021-05-11
相关资源
相似解决方案