擅长:python、mysql、java
<p>我明白你的意图了吗?</p>
<pre><code>max_tries = 8
tries_verbage = {
1: 'first',
2: 'second',
3: 'third',
4: 'fourth',
max_tries: 'last'
}
for i in xrange(1, max_tries + 1):
raw_input('Make your %s guess:' % tries_verbage.get(i, 'next'))
</code></pre>
<p>回报</p>
<pre><code>Make your first guess:1
Make your second guess:2
Make your third guess:3
Make your fourth guess:4
Make your next guess:5
Make your next guess:6
Make your next guess:7
Make your last guess:8
</code></pre>