1.常量与变量。
2.
类型标注
let型为数字整型。 double型为小数点型(精确)。float型为小数点型。
Bool型只有两种结果:true/false。 string型:字符串类型
3.常量与变量的命名。
let hello=“hello World" 你好使用英文hello
4.输出常量和变量。
print(hello) “hello World\n”
4.1 字符串查值
print(“字符串\(hello)”)
5.注解。
“//”后内容计算机不会识别
6.let cat=“mao”;print(cat)
7.类型转换。
不同类型的常量无法相加,如果要相加将其转化为一种类型。

将three从int类型转化为double型
