1.请按照这样的日期格式(xxxx-xx-xx)每日生成一个文件,例如今天生成的文件为2019-04-26.log, 并且把磁盘的使用情况写到到这个文件中。 import time, os new_time = time.strftime("%Y-%m-%d") disk_status = os.p ...
分类:
编程语言 时间:
2021-03-04 13:27:25
阅读次数:
0
step1: 打开网站:https://www.ipaddress.com/,分别搜索github.com,github.global.ssl.fastly.net,codeload.github.com,获取对应的ip地址 step2: sudo vi /etc/hosts i进入编辑模式,esc ...
分类:
系统相关 时间:
2021-02-27 13:05:50
阅读次数:
0
参考: https://www.cnblogs.com/CesareZhang/p/11140520.html https://www.cnblogs.com/CesareZhang/p/10744722.html 框架结构: Business:业务相关公共模块,如登录Common:业务无关公共模块 ...
分类:
其他好文 时间:
2021-02-26 13:33:35
阅读次数:
0
地址 https://leetcode-cn.com/problems/zui-chang-bu-han-zhong-fu-zi-fu-de-zi-zi-fu-chuan-lcof/ 请从字符串中找出一个最长的不包含重复字符的子字符串,计算该最长子字符串的长度。 示例 1: 输入: "abcabcb ...
分类:
其他好文 时间:
2021-02-26 13:13:05
阅读次数:
0
1、创建UDF函数 假定有两个均以,作为分隔符字符串序列@m和@n。判断@m和@n是否有交集,我们可以创建如下的函数来实现,返回0为无交集,返回1为有交集。 /****** Object: UserDefinedFunction [dbo].[Func_IsInner] Script Date: 2 ...
分类:
数据库 时间:
2021-02-23 14:33:46
阅读次数:
0
1. listfile (列表文件,即CMakeLists.txt) https://cmake.org/cmake/help/v3.19/manual/cmake-gui.1.html CMake is a cross-platform build system generator. Projec ...
分类:
其他好文 时间:
2021-02-20 12:32:02
阅读次数:
0
题目:https://atcoder.jp/contests/code-festival-2017-qualb/tasks/code_festival_2017_qualb_d 题意:给一个 01 串,每次可以把 101 换成 010,问最多能换多少次 . 题解: 令 \(dp_i\) 表示 \(1 ...
分类:
其他好文 时间:
2021-02-20 12:18:51
阅读次数:
0
Pod数据持久化 k8s中的volume提供了在容器中挂载外部存储的能力,Pod需要设置卷来源(spec.volume)和挂载点(spec.containers.volumeMounts)这两个信息后 才可以使用相应的volume 官方对volume的介绍: Docker 也有 Volume 的概念 ...
分类:
其他好文 时间:
2021-02-18 13:30:42
阅读次数:
0
在C++中加载TorchScript模型 本教程已更新为可与PyTorch 1.2一起使用 顾名思义,PyTorch的主要接口是Python编程语言。尽管Python是合适于许多需要动态性和易于迭代的场景,并且是首选的语言,但同样的,在 许多情况下,Python的这些属性恰恰是不利的。后者通常适用的 ...
分类:
编程语言 时间:
2021-02-16 12:30:34
阅读次数:
0
1.需求 /** * 需求:每两个元素输出一次 */2 代码 package com.nx.streaming.lesson03; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.streaming.api ...
分类:
其他好文 时间:
2021-02-15 12:25:40
阅读次数:
0