打印swift 变量的类型

var a = 0

print(a.dynamicType)

结果为: Int

原文地址:https://www.cnblogs.com/egai/p/5069147.html