Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
示例:2.3666% 我正在使用。但不工作..
float n = 2.3666; NSLog(@"%f%",n);
您需要使用%%
%%
float n = 2.3666; NSLog(@"%f%%",n);
逃脱%:
%
NSLog(@"%f%%",n);
使用 %% 在 NString NSLog 中转义 % 字符