lua的string.format前后填充

前/后填充

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