01 2021 档案
摘要:opencv 保存摄像头中获取到的图片 1、安装: 包一: pip install opencv-contrib-python 包二: pip install opencv-python 以上两个包都可以使用,至于Pycharm没有提示这个问题,可以通过重启Pycharm来解决 2、Opencv 保
阅读全文
摘要:pip 批量安装 将待安装的包按照下面的格式保存在 requests.txt 文件中 chardet==4.0.0 idna==2.10 requests==2.25.1 urllib3==1.26.2 在该文件的目录下运行下面的指令 pip install -r requests.txt
阅读全文
摘要:requests 安装: pip install requests 参考文档 https://requests.readthedocs.io/en/master/ GET: # get(url, 字典格式的参数) r = requests.get('https://api.github.com/us
阅读全文
摘要:axios 通过async和await实现同步 function getPage(menuId, url) { // 这里要有 return return this.$http.get(url, { params: { menuId: menuId } }).then((response) => {
阅读全文
摘要:怎么在Vue中使用axios组件: 通过npm安装axios npm i axios 在 src/main.js中导入该组件 import axios from 'axios' axios常用请求 GET : // 为给定 ID 的 user 创建请求 axios.get('/user?ID=123
阅读全文
摘要:怎么在Vue项目中使用Element组件: 通过npm下载Element组件 npm i element-ui -S 在 src/main.js 中导入该组件 // 引入相关JS文件 import Element from 'element-ui' // 引入相关CSS文件 import 'elem
阅读全文
摘要:vue-cli 基本使用 1、全局安装vue-cli 安装 npm install -g @vue/cli 2、通过vue创建一个项目 vue create hello-world 3、项目运行 cd hello-world npm run serve 4、把项目编译成静态网页 注意:这里可能会出现
阅读全文
摘要:FastJson jsonString 转 Object Result 对象: public class Result { private Integer code; private String msg; private ArrayList<Data> data; public Integer g
阅读全文
摘要:apt 常用命令 PS:Ubuntu、Debian 默认使用 apt 对程序包进行管理;RedHat、Centos 默认使用 yum对包进行管理 搜索程序包: apt-cache search 包名 下载程序包: apt-get install 包名 卸载程序包: apt-get remove 包名
阅读全文
摘要:Windows: 在 C:\Users\用户名 下面新建一个pip目录,在该目录下面新增 pip.ini 文件,文件的内容如下 Linux: vim ~/.pip/pip.conf [global] index-url = http://mirrors.aliyun.com/pypi/simple/
阅读全文
摘要:打开 apache-maven/conf/settings.xml 文件,添加如下的代码 <!-- 在 settings 标签上配置本地仓库的路径 --> <localRepository>E:\MavenRepository</localRepository> <!-- 在 mirrors 标签下
阅读全文
摘要:1、新建 conf.yaml 文件 database: dbtype: mysql dbname: database table: table username: username password: password application: port: 8000 2、新建 conf.go 文件
阅读全文