擅长:python、mysql、java
<p>非常感谢:</p>
<p><a href="https://stackoverflow.com/users/9359583/kremklatt">https://stackoverflow.com/users/9359583/kremklatt</a></p>
<p>我使用了以下链接:</p>
<p><a href="https://stackoverflow.com/questions/4438020/how-to-start-a-python-file-while-windows-starts">How to start a python file while Windows starts?</a>
<a href="https://datatofish.com/command-prompt-python/" rel="nofollow noreferrer">https://datatofish.com/command-prompt-python/</a></p>
<p>最后的剧本:</p>
<pre><code>import os
import threading
def flushdns():
threading.Timer(60.0, flushdns).start() # repeat every 60 seconds
os.system('cmd /k "ipconfig/flushdns"')
flushdns()
</code></pre>
<p>这个社区是史诗般的xD</p>
<p><a href="https://github.com/perdubaro/DnsFlusher" rel="nofollow noreferrer">https://github.com/perdubaro/DnsFlusher</a></p>
<p>任何反馈(欢迎:)</p>