擅长:python、mysql、java
<blockquote>
<p>I have written these code, does it satisfy above conditions, or is there any bug? None of them give error but want to make sure that logic is correct.</p>
</blockquote>
<p>最好的方法是编写单元测试,将代码的输出与给定输入集的预期输出进行比较。你知道吗</p>