立即学习:https://edu.csdn.net/course/play/26755/340143?utm_source=blogtoedu 使用字符串的center方法和format方法都可以让字符串居中显示,功能相同