VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > 编程开发 > python教程 >
  • python基础教程之使用Python制作一个简单的刷微博器

本站最新发布   Python从入门到精通|Python基础教程
试听地址  
https://www.xin3721.com/eschool/pythonxin3721/


呵呵,不得不佩服Python的强大,寥寥几句代码就能做一个简单的刷微博器。

import webbrowser as webimport timeimport os

count=0while count<10:
    count=count+1    #你要刷的博客
    web.open_new_tab("http://www.cnblogs.com/smiler/archive/2010/04/20/1716418.html#2856973")
    time.sleep(1)else:
    os.system('taskkill /F /IM  360se.exe')

 

 你可以试下,有没有很强大,小弟刚学Python,练手用的,这里主要学到三个知识点:

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

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

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

衷心的强大哈,一定要学好!

相关教程