摘要: C语言中的printf,sprintf打印实现 以前使用C语言的时候知道可以使用如下方法动态指定长度打印: 点击查看代码 printf("[%-*s]", 10, "hello"); sprintf(str, "[%-*s]", 10, "hello"); 发现在Java中使用String.form 阅读全文
posted @ 2021-11-17 17:04 杨海星 阅读(293) 评论(0) 推荐(0) 编辑