代码如下:
import webbrowser as web<BR>import time<BR>import os</P><P>count=0<BR>while count<10:<BR> count=count+<div>本文来源gaodai.ma#com搞##代!^码@网3</div>1<BR> #你要刷的博客<BR> web.open_new_tab("这里是博客地址")<BR> time.sleep(1)<BR>else:<BR> os.system('taskkill /F /IM 360se.exe')<BR>
这里主要学到三个知识点:
1.Python的线程原来是在time模块下
2.Python调用cmd命令行原来如此的简单,比C#简单的多
3.操作打开网页open一下就OK