菜比之路

走菜比的路,让大牛说去吧
  博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

2016年9月8日

摘要: # -*- coding: utf-8 -*- import urllib2 import re #connect to a URL website = urllib2.urlopen("http://www.baidu.com") #read html code html = website.read() #use re.findall to get all the links links ... 阅读全文

posted @ 2016-09-08 15:59 毕加索的ma 阅读(1959) 评论(0) 推荐(0) 编辑

摘要: ##coding:utf-8 import winsound winsound.Beep(600,6000) #其中600表示声音大小,1000表示发生时长,1000为1秒 阅读全文

posted @ 2016-09-08 14:59 毕加索的ma 阅读(2872) 评论(0) 推荐(0) 编辑

摘要: # -*- coding: utf-8 -*- #sharejs.com提供代码,转载请注明出处 class Site(object): def __init__(self): self.title = 'share js code' self.url = 'http://www.sharejs.c 阅读全文

posted @ 2016-09-08 14:50 毕加索的ma 阅读(1719) 评论(0) 推荐(0) 编辑

摘要: #coding:utf-8 import os import time def print_ts(message): print "[%s] %s"%(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), message)###转为为2016-09-08 13:36:32时间格式 def run(interval, command... 阅读全文

posted @ 2016-09-08 14:36 毕加索的ma 阅读(247) 评论(0) 推荐(0) 编辑