1 printf("%*.*lf\n", a, b, c); //表示a宽距,保留b位小数 用这种方法可以通过输入控制a和b
printf特殊用法
原文:https://www.cnblogs.com/yuanweidao/p/11823914.html