
python
chen802311
qq: 727690080
展开
-
python编程环境搭建
1:安装 Eclipse+PyDev PyDev解压后的features、plugins放在eclipse中同名目录即可2:然后:窗口---->首选项----->Iterpreters----->Python Iterpreter 新建python解释器的路劲即可原创 2015-11-09 21:24:06 · 472 阅读 · 0 评论 -
python装饰器
1: import timefrom functools import wraps def timethis(func): ''' Decorator that reports the execution time. ''' @wraps(func) def wrapper(*args, **kwargs): start = time.time() result = func(*原创 2016-12-15 16:48:39 · 313 阅读 · 0 评论