Home  >  Article  >  Backend Development  >  python调用cmd命令行制作刷博器

python调用cmd命令行制作刷博器

WBOY
WBOYOriginal
2016-06-06 11:28:441029browse

代码如下:


import webbrowser as web
import time
import os

count=0
while count    count=count+1
    #你要刷的博客
    web.open_new_tab("这里是博客地址")
    time.sleep(1)
else:
    os.system('taskkill /F /IM  360se.exe')

这里主要学到三个知识点:

1.Python的线程原来是在time模块下

2.Python调用cmd命令行原来如此的简单,比C#简单的多

3.操作打开网页open一下就OK

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn