<p>我有一个非常简单的脚本,目标是如果有人输入40到49之间的数字作为原始输入,<code>ageRisk</code>的值应该从0变为0.004</p>
<pre><code>age = raw_input("Enter your age: ")
ageRisk = 0
if age >= 40 and age < 50:
ageRisk = 0.004
print ageRisk
</code></pre>
<p>但是,当我为<code>raw_input</code>运行这个脚本时,输入44,<code>ageRisk</code>的值仍然是0。为什么会这样</p>