<p>如何将用户输入的数字与我输入的数字相乘?你知道吗</p>
<p>我有</p>
<pre><code>weight = input ('What is your weight')
print ('this is your weight on the moon')
print weight*.165
</code></pre>
<p>这不管用为什么?你知道吗</p>
<p>有几个问题。正如不法分子Lemur所指出的,print是python3中的一个函数。此外,您还需要将权重设置为float或int(不管是哪个值),否则会出现TypeError。你知道吗</p>
<pre><code>weight = float(input ('What is your weight'))
</code></pre>