准备 查看磁盘的基本信息 !df -hl 1 !pwd 1 我们这里只做最基本的数据处理所以只引入了基本包 另外引入了ti的session后面通过它将数据上传到cos import os, gc import pandas as pd import numpy as np from ti impor ...
分类:
编程语言 时间:
2020-05-21 16:10:20
阅读次数:
140
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
分类:
其他好文 时间:
2020-05-21 10:33:22
阅读次数:
54
这个工具类完成的工作如下: 1、第一个static方法,完成图片格式的转换。统一转换成.jpg格式。 package util; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.awt.image.C ...
分类:
其他好文 时间:
2020-05-21 00:02:27
阅读次数:
219
这节我们为大家介绍 Vue.js 表单上的应用。你可以用 v-model 指令在表单控件元素上创建双向数据绑定。v-model 会根据控件类型自动选取正确的方法来更新元素。一、表单控件元素1、输入框 input 元素: 消息是: {{ message }} textarea 元素: {{ messa... ...
分类:
Web程序 时间:
2020-05-20 14:21:35
阅读次数:
69
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2020-05-20 14:12:20
阅读次数:
55
1. 动态规划 1. 三要素:定义状态,分解子问题(找到迭代公式),设置边界条件 2. 三种解题思路: 1. Brutal Force Search 2. Top Down(回溯+剪枝) 3. Bottom Up(memorization) 2. 解题模板 2.1 题目定义 1. $v[i]$ 第i ...
分类:
其他好文 时间:
2020-05-20 14:01:20
阅读次数:
69
数据库连接问题 需要处理的地方有3处 1、url: jdbc:mysql://localhost:3306/springboot?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai 2、dr ...
分类:
其他好文 时间:
2020-05-20 12:34:41
阅读次数:
48
题目传送门 A. Sequence with Digits an+1=an+minDigit(an)?maxDigit(an),已知a1,k,求ak。 当minDigit(an)=0时,an+1=an,对后续的答案不会产生影响了。 #include <bits/stdc++.h> using nam ...
分类:
其他好文 时间:
2020-05-18 23:02:42
阅读次数:
81
题目 Given a sequence of K integers { N?1?? , N?2?? , ..., N?K?? }. A continuous subsequence is defined to be { Ni?? , N?i+1?? , ..., N?j?? } where 1≤i≤ ...
分类:
其他好文 时间:
2020-05-18 22:37:14
阅读次数:
57
一般来说PyTorch有两种保存和读取模型参数的方法。但这篇文章我记录了一种最佳实践,可以在加载模型时避免掉一些问题。 传统方案: 第一种方案是保存整个模型: torch.save(model_object, 'model.pth') 第二种方法是保存模型网络参数: torch.save(model ...
分类:
其他好文 时间:
2020-05-18 21:07:26
阅读次数:
323