擅长:python、mysql、java
<p><code>input()</code>与您使用它的方式不一样。在<code>input()</code>中的参数
在用户输入之前打印。你做了相当于:</p>
<pre><code>quantityShoes = int()
print("How many shoes do you wish to purchase?")
input(quantityShoes)
</code></pre>
<p>第一行将<code>quantityShoes</code>设置为默认整数,即0。第二行打印该文本。第三行打印该数字并等待用户输入。您希望执行以下操作:</p>
<pre><code>quantityShoes = int(input("How many shoes do you wish to purchase?"))
</code></pre>