And there's probably more digits after the decimal place, but because of my formatting string, I only see a couple of them.
这里可能有更多的小数位,但因为我对结果设定了格式,我们只看到两位。
The %1$tB formatting string in the code above tells the program to use the first argument and print out the full month name for the date object.
上面代码中的格式化字符串 %1$tB 告诉程序使用第一个参数并打印 date 对象的完整月名。
Typically, you use control characters to indicate simple formatting within a string.
通常,您可以使用控制符来表示字符串中的简单格式。
And there's probably more digits after the decimal place, but because of my formatting string, I only see a couple of them.
这里可能有更多的小数位,但因为我对结果设定了格式,我们只看到两位。
应用推荐