擅长:python、mysql、java
<p>见下文(类似于此):</p>
<ul>
<li>从用户那里获取输入</li>
<li>调用函数并传递参数</li>
</ul>
<pre class="lang-py prettyprint-override"><code>def answers(tp, fp, fn):
ppv = tp / (tp + fp)
rcl = tp / (tp + fn)
return ppv, rcl
print("enter the value of true positive")
_tp = input()
print("enter the value of false negative")
_fn = input()
print("enter the value of false positive")
_fp = input()
print('ppv and recall answers')
print(answers(int(_tp), int(_fp), int(_fn)))
</code></pre>