%f,e,g

%f 表示按浮点数的格式输出

%e 表示按指数形式的浮点数的格式输出

%g 表示自动选择合适的表示法输出

猜你喜欢

转载自blog.csdn.net/qq_39735236/article/details/81478689