// Log 输出func printLog(_ message: T,
file: String = #file,
method: String = #function,
line: Int = #line){
#if DEBUG
print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
#endif
}
printLog("这是一条输出") // playground764.swift[235], __lldb_expr_764: 这是一条输出
网友评论