摘要: 进行视频处理时,通常会用到python中的ffmpy,ffmpy的使用又会用到ffmpeg,接下来就按照顺序依次介绍ffmpeg的安装和在Python中使用ffmpy。 1.ffmpeg下载安装 官方下载地址:https://ffmpeg.org/download.html 在python中使用ff 阅读全文
posted @ 2021-01-06 00:34 程嘿嘿 阅读(11670) 评论(0) 推荐(2) 编辑
摘要: Medium According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematicia 阅读全文
posted @ 2020-11-27 20:39 程嘿嘿 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Medium Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one duplicate numb 阅读全文
posted @ 2020-11-27 11:07 程嘿嘿 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 283. Move Zeroes Easy Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elem 阅读全文
posted @ 2020-11-19 13:26 程嘿嘿 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Blob对象:是一个类文件对象 构造函数:Blob() let blob = new Blob([...], {type: 'Number'}); 属性: 1. Blob.size() //(只读)返回blob的字节大小 2. Blob.type() //(只读)返回blob所包含数据的MIME类型 阅读全文
posted @ 2020-11-03 16:23 程嘿嘿 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: 1.HTTP0.9 超文本传输协议:传输内容较单一 1.只有一个请求行,没有请求头和请求体 2.响应数据没有头信息 3.响应数据以ASCII码的形式传输 4.只能发送get这样的简单请求 2.HTTP1.0 解决问题:随着传输数据类型的多样化,客户端和服务器都需要给对方传达更多信息 方法: 1.引入 阅读全文
posted @ 2020-07-24 00:48 程嘿嘿 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1.继承方式 ES6中使用extends关键字实现继承 class subType extends superType{ ... } 与es5的继承,子类创建自己的this,然后父类对其加工不同,es6的继承原理是,继承父类的this,并在此基础上进行修改。因此,实现继承必须要在constructo 阅读全文
posted @ 2020-06-30 15:51 程嘿嘿 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 定义一个父类Person: function Person(name){ this.name=name; } Person.prototype.age=25;Person.prototype.show=function(){ console.log(this.name);} 1.原型链继承 子类的原 阅读全文
posted @ 2020-05-05 23:51 程嘿嘿 阅读(690) 评论(0) 推荐(0) 编辑
摘要: var和let用于声明变量。const用于声明常量,声明时必须初始化,且值不可更改。 var: 1.作用域:var声明的变量作用域为全局作用域,或函数作用域。 2.变量提升:在变量声明前获取变量不会报错,变量的值为undefined。 3.重复声明:可重复声明,后声明的变量会覆盖先声明的变量。 le 阅读全文
posted @ 2020-05-01 23:57 程嘿嘿 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 数组Array 创建: 1.使用方括号[ ]进行创建和初始化 var arr=[] //创建一个空数组 var arr=[1,2,3] //创建一个包含数字的数组 2.使用Array构造函数 var arr=new Array() //创建空数组 var arr=new Array(1,2,3) / 阅读全文
posted @ 2020-04-05 12:08 程嘿嘿 阅读(3035) 评论(0) 推荐(0) 编辑