擅长:python、mysql、java
<p>下面是一个类似的问题:</p>
<p><a href="https://stackoverflow.com/questions/1133857/how-accurate-is-pythons-time-sleep">how-accurate-is-pythons-time-sleep</a></p>
<p>在linux上,如果您需要高精度,您可能需要使用ctypes来调用<a href="http://linux.die.net/man/2/nanosleep" rel="noreferrer">nanosleep()</a>或<a href="http://linux.die.net/man/2/clock_nanosleep" rel="noreferrer">clock_nanosleep()</a>。不过,我不确定这么做会有什么影响。</p>