/* // Definition for a Node. class Node { public int val; public List<Node> children; public Node() {} public Node(int _val) { val = _val; } public No ...
分类:
其他好文 时间:
2020-07-15 23:57:38
阅读次数:
89
import csv import random class XmlFormat(object): def __init__(self): self.wf = open('data/res_location.xml', 'w', encoding='utf-8') self.add_header() ...
分类:
其他好文 时间:
2020-07-15 23:52:04
阅读次数:
67
问题原因:raw.githubusercontent.com网站不能访问,需要修改hosts文件,添加新网站的ip地址 1.打开终端,输入gedit /etc/hosts。 2.在打开的文本最后添加:199.232.28.133 raw.githubusercontent.com。 3.保存并退出, ...
分类:
其他好文 时间:
2020-07-15 23:33:12
阅读次数:
239
django模板渲染 模板渲染,模板指的就是html文件,渲染指的就是字符串替换,将模板中的特殊符号替换成相关数据 基本语法 {{ 变量 }} {% 逻辑 %} 变量使用 看示例 Views.py文件 def home(request): class A: def __init__(self): s ...
分类:
其他好文 时间:
2020-07-15 23:19:31
阅读次数:
65
原文链接:https://blog.csdn.net/leixiaohua1020/article/details/44305697 FFmpeg中的图像处理(缩放,YUV/RGB格式转换)类库libswsscale的源代码。libswscale是一个主要用于处理图片像素数据的类库。可以完成图片像素 ...
分类:
其他好文 时间:
2020-07-15 23:03:38
阅读次数:
83
记录了本人在科研中常用到的git操作,方便查询,内容并不全面,更多功能等用到的时候再加 基础操作: 初始化仓库 git init 克隆仓库 git clone <URL> 添加、提交全部修改 git add . git commit -m "message" 分支操作 显示当前branch git ...
分类:
其他好文 时间:
2020-07-15 16:05:47
阅读次数:
85
一、准备工作 首先项目要npm init初始化项目,一定要有package.json描述文件,其次要哟npm账号,如果没有可以去申请一个。地址:https://www.npmjs.com/ 二、登录 在vscode中输入 npm adduser ,依次输入 Username, Password , ...
分类:
其他好文 时间:
2020-07-15 16:03:53
阅读次数:
89
题目描述 下面数列的第 n 项: \(f(0) = a_0 ,f(1) = a_1 ,f(2) = a_2\) \(f(n) = b×f(n ? 1) + c×f(n ? 2) + d×f(n ? 3) + e (n ≥ 3)\) 输入格式 包含 1 行,共 8 个整数:\(a_0、a_1、a_2、 ...
分类:
其他好文 时间:
2020-07-15 15:54:31
阅读次数:
52
一、部署GIT 服务器 1.安装git $ sudo apt-get install git 2.创建一个git用户,用来运行git服务: $ sudo adduser git 二、创建git配置库文件夹 $ cd /home/data $ sudo git init --bare gitrepo. ...
分类:
系统相关 时间:
2020-07-15 15:42:34
阅读次数:
93
项目创建 (1)npm install -g wepy-cli 全局安装wepy 脚手架 (2)wepy init standard xxx 创建项目 (3)cd xxx 进入项目目录 (4)npm install 安装项目依赖 (5)wepy build —watch 实时监控 项目运行 (1)打 ...
分类:
其他好文 时间:
2020-07-15 12:58:06
阅读次数:
77