//print("Hello, World!")
//类型安全
//定义常量(oc的常量前const表示修饰符只读)
//let 定义常量 var定义变量
let str="hello world!"
//Int Double Float Bool String Set Array Dictionary
//元祖 可选
//显示申明
let score1: Int = 100
let score: Int = Int (100.1) //强制转换
print("score= \(score)") //拼接变量
print("score1=",score1,"!!!@@@")
print("score",score, separator: " , ", terminator: "\n")
//隐式申明:不需要申明数据类型,系统自动推断
var number = 100
number = 123
var string:NSString = "hello"
print(string.intValue)
var 你好 = "hello"
var
//类型安全
//定义常量(oc的常量前const表示修饰符只读)
//let 定义常量 var定义变量
let str="hello world!"
//Int Double Float Bool String Set Array Dictionary
//元祖 可选
//显示申明
let score1: Int = 100
let score: Int = Int (100.1) //强制转换
print("score= \(score)") //拼接变量
print("score1=",score1,"!!!@@@")
print("score",score, separator: " , ", terminator: "\n")
//隐式申明:不需要申明数据类型,系统自动推断
var number = 100
number = 123
var string:NSString = "hello"
print(string.intValue)
var 你好 = "hello"
var