自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (1)
  • 收藏
  • 关注

原创 python threading.Event()实现线程同步

import threadingimport timeevent = threading.Event()event.clear()def synchro_fun(): event.wait() print(time.time())def main(): for i in range(6): t = threading.Thread(tar...

2018-10-31 10:31:27 620

原创 linux git/gitlab 配置

Error:ssh: connect to host ***: Connection refusedfatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.#设置git身份的名字和邮箱git conf...

2018-10-18 17:06:01 251

原创 python/curl 命令行实现http接口测试

curl#getcurl http://address:port/url?args#postcurl http://address:port/url -d "param1=value1&param2=value2"#上传文件curl http://address:port/url -F "file=@1.jpg&quot

2018-10-16 17:50:57 5639

原创 python 遍历,删除,复制文件夹下所有文件

import osdef files_and_dirs_list(dir_path): """ root 所指的是当前正在遍历的这个文件夹的本身的地址 dirs 是一个 list ,内容是该文件夹中所有的目录的名字(不包括子目录) fil

2018-10-12 14:48:36 3689

原创 python 将任意图片格式(png等)转换成jpg

from PIL import Imagedef IsValidImage(img_path): """ 判断文件是否为有效(完整)的图片 :param img_path:图片路径 :return:True:有效 False:无效 ""&a

2018-10-12 14:04:31 32942 6

原创 python 将视频 通过视频帧转换成时间

def frames_to_timecode(framerate,frames): """ 视频 通过视频帧转换成时间 :param framerate: 视频帧率 :param frames: 当前视频帧数 :return:时间(00:00:01:01) """ return '{0:02d}:{1:02d}:{2:02d}:{3

2018-10-12 13:46:59 2840

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除