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

WBOY
Release: 2016-06-06 11:28:44
Original
1060 people have browsed it

代码如下:


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template