<p>我很难用小数点打印数字。
当我运行python并要求它执行除法时,结果必须是一个带小数点的数字,它不会打印小数点。
例如,我刚刚制定了这个算法:</p>
<pre><code>print 'Report card calculation'
grade1 = input ('Insert the first grade: ')
grade2 = input ('Insert the second grade: ')
grade3 = input ('Insrt the third grade: ')
media = (grade1 + grade2 + grade3) / 3
print 'Your final result is', media
</code></pre>
<p>但是当它打印“媒体”时,应该有小数点的数字不会带有小数点。我怎么能修好?</p>