擅长:python、mysql、java
<p>将打印时间的行改为:</p>
<pre><code>print("You have {} minutes and {} seconds remaining.".format(*divmod(count, 60)))
</code></pre>
<hr/>
<p>以下是全文:</p>
^{pr2}$
<p>以及一个示例:</p>
<pre><code>Welcome. This program will put your computer to sleep in 5 minutes.
To abort shutdown, please close the program.
You have 2 minutes and 0 seconds remaining.
You have 1 minutes and 59 seconds remaining.
You have 1 minutes and 58 seconds remaining.
You have 1 minutes and 57 seconds remaining.
You have 1 minutes and 56 seconds remaining.
You have 1 minutes and 55 seconds remaining.
...
</code></pre>
<hr/>
<p>最后,这里有一个关于<a href="http://docs.python.org/3.3/library/functions.html#divmod" rel="nofollow">^{<cd1>}</a>和一个关于{a2}的引用。在</p>