Swift提供了两种打印方式
public func print(_ items: Any..., separator: String = default, terminator: String = default)
public func debugPrint(_ items: Any..., separator: String = default, terminator: String = default)
将需要打印的参数用(parameter)包裹即可
var name="jack"
print("name is \(name)")
debugPrint("name is \(name)")
喜欢可以加Q群号:874826112,一起学习,成长,交流工作经验,
记得要点赞,评论哦😯;
更多相关内容请点击主页查看…
简书: https://www.jianshu.com/u/88db5f15770d
网友评论