前/后填充
string.format(%10s, str) --不够10个字符前面填充相应空格 string.format(%-10s, str) --不够10个字符后面填充相应空格
lua的string.format前后填充
原文:https://www.cnblogs.com/yifengs/p/14921381.html