And there's probably more digits after the decimal place, but because of my formatting string, I only see a couple of them.
这里可能有更多的小数位,但因为我对结果设定了格式,我们只看到两位。
And we won't wait here one hundred seconds for it to finish, but we're using the loop, we're updating a variable, and we're formatting it in a nice way.
我们将不会再这里等待100秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。
Now as an aside, turns out you can do more interesting formatting with printf, and this is useful even for ASCII art purposes.
说点题外话,结果你可以用printf来打印其他的格式,这是非常有用的,甚至是为了ASCII艺术的目的。
应用推荐