- NSLog(@"我的姓名是 %@ ",name);
复制代码 运行的结果是:- 2015-05-10 17:31:51.201 ObjectC[2058:115020] 我的姓名是 %@
- 2015-05-10 17:31:51.203 ObjectC[2058:115020] person's name is lewis
- 2015-05-10 17:31:51.204 ObjectC[2058:115020] perspn's name is Jack
复制代码- NSLog(@"person's name is %@",name);
复制代码 运行的结果是:- 2015-05-10 17:35:05.192 ObjectC[2099:116310] person's name is lewis
- 2015-05-10 17:35:05.194 ObjectC[2099:116310] person's name is lewis
- 2015-05-10 17:35:05.194 ObjectC[2099:116310] perspn's name is Jack
复制代码 为什么第一次打印出来的是‘%@’而第二次打印出来的却是具体的名字呢?二者什么区别
|
|