- (Left-justifies the variable value)
-(向左调整变量值)
[0-9] (Specifies the minimum width held of to the variable value)
[0-9](指定了变量值的最小宽度)
.[0-9] (Specifies the number of decimal digits or maximum string length)
.[0-9](指定了十位数字或最大字符串长度)
Note: If multiple additional format values are used, they must be in the same order as above.
注意:如果要使用多个上述的值,顺序必须按照上面的顺序,不能打乱。
mixedOptional.
可选参数
Tips and Notes
注意点
Note: Any whitespace in the format string matches any whitespace in the input stream. This means that a tab (/t) in the format string can match a single space character in the input stream.
注意:任何format的值中的空白部分[whitespace]与input内容相似;这意味着tab键(/t)[制表符]和input内容的一个单一的空格[space]相似。
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-32611-2.html
而且钱可随时转进转出