![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
code_python
种棒影妞
explain is pale,show me code
展开
-
python cv2把视频转化为 图片
convert video to pic def video_pic(path): cap = cv2.VideoCapture(path) sucess = cap.isOpened() frame_count = 0 i = 0 while sucess: frame_count += 1 sucess, frame = ...原创 2019-05-14 13:04:29 · 2714 阅读 · 0 评论 -
python中装饰器
写再前面的话 装饰器就是用于拓展函数功能的一种函数 函数+实参高阶函数+返回值高阶函数+嵌套函数+语法糖=装饰器、 无参装饰器 import time def deco(func): def wrapper(): startTime = time.time() func() endTime = time.time() msec...原创 2019-07-30 22:58:38 · 108 阅读 · 0 评论