打印swift 变量的类型

var a = 0

print(a.dynamicType)

结果为: Int

posted @ 2015-12-23 10:40  egai  阅读(231)  评论(0)    收藏  举报