When you have a width specification of 1 (like you do in the second line) the output will be H or T. If you have anything else, the output will be HEADS or TAILS. But first, we need to add the %H ...
因为有一部分用的是第三发的库,里面有printf输出异常信息,需要把这些内容写入日志,同时还要在屏幕上显示,该怎么实现?