2017年11月4日

python函数装饰器的使用

摘要: # -*- coding: utf-8 -*- ''' 使用语法糖@来装饰函数,相当于“myfunc = deco(myfunc)” 但发现deco函数只在第一次被调用,且myfunc函数在第一次后又被多调用了一次 ''' def deco(func): print("before myfunc() called.") func() print("aft... 阅读全文

posted @ 2017-11-04 17:33 似不是傻 阅读(723) 评论(0) 推荐(0)

python提取页面信息beautifulsoup正则lxml

摘要: beautifulsoup正则lxml 阅读全文

posted @ 2017-11-04 17:30 似不是傻 阅读(994) 评论(0) 推荐(0)

导航