swift_study_1

前端之家收集整理的这篇文章主要介绍了swift_study_1前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

//: Playground - noun: a place where people can play


import UIKit


//var name: String = "hwl"

//var age:Int = 29

//var isman:Bool = true


var name = "hwl"//类型推导为String

var age = 29//类型推导为Int

var isman = true//类型推导为Bool

var π = 3.14159226//可以直接用π作为变量名更形象

var

原文链接:https://www.f2er.com/swift/327002.html

猜你在找的Swift相关文章