<p>当我运行这个程序的时候</p>
<pre><code>print('Welcome to the algebra machine!')
from random import *
a=randint(1,20)
b=(input('Choose a number:'))
c=a*b
print('You got a total of',c)
d=(input('What was the original number?'))
if d==a:
print('Correct!')
else:
print('Wrong!')
</code></pre>
<p>例如,如果输入<code>2</code>,我会得到<code>22222222</code>的最终答案。
为什么<code>randint</code>没有被限制在<code>20</code></p>