使用Python製作一個簡單的刷微博器

pythontab發表於2014-01-14

呵呵,不得不佩服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

衷心的強大哈,一定要學好!


相關文章