from docx import Document word=Document() word.add_heading('一级标题',level=1) #增加一级标题 p1=word.add_paragraph('这是第一段') p2=word.add_paragraph('这是第二段') p3=wo ...
分类:
其他好文 时间:
2020-06-05 23:16:52
阅读次数:
99
from netmiko import ConnectHandlerimport logginglogging.basicConfig(filename="test.log", level=logging.DEBUG)huawei = {'device_type': 'huawei', 'ip': ...
分类:
Web程序 时间:
2020-06-05 22:36:46
阅读次数:
167
给你一个二叉树,请你返回其按 层序遍历 得到的节点值。 (即逐层地,从左到右访问所有节点)。 示例:二叉树:[3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7返回其层次遍历结果: [ [3], [9,20], [15,7]] /** * Definition f ...
分类:
其他好文 时间:
2020-06-05 21:13:11
阅读次数:
52
Block element Block elements, or block-level elements, have a rectangular structure. By default, these elements will span the entire width of its pare ...
分类:
Web程序 时间:
2020-06-05 21:12:41
阅读次数:
89
项目中,有时候需要对系统中已处理的一些业务数据日志进行提取分析,通常log4j默认提供的日志级别可能不够用,这时候我们就需要对日志级别进行扩展,以满足我们的需求. 本文就简单介绍一下log4j2的日志级别扩展,直接上代码 import org.apache.logging.log4j.Level; ...
分类:
其他好文 时间:
2020-06-05 13:27:36
阅读次数:
94
python 日志输出级别import logging logging.basicConfig(level=logging.DEBUG,format=’%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s’,datef ...
分类:
编程语言 时间:
2020-06-05 11:37:06
阅读次数:
63
日志清理目前覆盖58台服务器如下 此处省略 #!/bin/sh . /etc/rc.d/init.d/functions currTime=$(date +"%Y-%m-%d %T") logpath=/home/local/logs TarlogPath=/data/home/deploy/out ...
分类:
其他好文 时间:
2020-06-05 10:31:39
阅读次数:
81
1002 写出这个数 (20分) 读入一个正整数 n,计算其各位数字之和,用汉语拼音写出和的每一位数字。 输入格式: 每个测试输入包含 1 个测试用例,即给出自然数 n 的值。这里保证 n 小于 10的100次方。 输出格式: 在一行内输出 n 的各位数字之和的每一位,拼音数字间有 1 空格,但一行 ...
分类:
其他好文 时间:
2020-06-05 00:55:23
阅读次数:
75
find 格式: find [OPTION] .... [查找路径] 查找条件 处理动作 查找路径:可以指定具体的路径,默认是当前路径 查找条件:用来指定文件查找的标准,可以是文件名、大小、权限、类型等等 处理动作:对符合条件的文件进行的操作,默认是直接输出到屏幕上 查找条件 按照名称来搜索: 可以 ...
分类:
系统相关 时间:
2020-06-05 00:45:47
阅读次数:
80
An Intro to Stateful Stream Processing At a high level, we can consider state in stream processing as memory in operators that remembers information a ...
分类:
Web程序 时间:
2020-06-04 21:20:14
阅读次数:
74