安装好pytest库后,要设置好pytest,步骤为新建一个工程后,左上角file->Setting->Tools->Python Integrated Tools->项目名称->Default test runner->选择py.test 改完之后,要实现一个该脚本方法 点击右键就可以看到执行命令 ...
分类:
其他好文 时间:
2020-07-01 12:25:13
阅读次数:
55
1.Python3.6的安装 Ubuntu中自带python2.7和python3.5,但是很多情况下我们需要使用python3.6,以下是在终端中安装python3.6的详细步骤: 在终端中输入下面的命令 wget http://www.python.org/ftp/python/3.6.4/Py ...
分类:
编程语言 时间:
2020-07-01 12:17:17
阅读次数:
79
public List ReadeCFGNameFromExcel(string ExcelName) { List ColumnDB = new List(); //创建 Excel对象 Microsoft.Office.Interop.Excel.Application App = new Mi ...
[root@host-172-16-103-3 log]# systemctl is-enabled cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service enabled enable ...
分类:
其他好文 时间:
2020-07-01 11:05:00
阅读次数:
50
排查一下snmptrapd服务状态是不是异常,发现snmptrap的服务的确是异常的,出现这样的问题,我们怀疑是缺少net-snmp-perl包导致
分类:
其他好文 时间:
2020-07-01 09:49:54
阅读次数:
95
'''文件读取'''# python通过内置open()方法打开文件,若文件存在,则打开并进行读取操作,# 否则创建文件,相关参数有w, w+, a, a+if "hello.txt" is True: # 文件打开时,指定编码方式 file = open("hell.txt",'r',encodi ...
分类:
编程语言 时间:
2020-07-01 09:38:08
阅读次数:
95
<input type="file" accept="image/*" capture="camera"> <input type="file" accept="video/*" capture="camcorder"> <input type="file" accept="audio/*" cap ...
分类:
移动开发 时间:
2020-07-01 09:20:43
阅读次数:
422
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.nio.file.File ...
分类:
编程语言 时间:
2020-07-01 09:15:20
阅读次数:
77
基于python3浅谈python3与python2的差异。由于现今主流Python3,但是之前用Python2做的项目,还得维护,所以作为python工作者,不免要了解其中差异,其中,Python2 有 ASCII str() 类型,unicode() 是单独的,不是 byte 类型。而 Pyth ...
分类:
编程语言 时间:
2020-07-01 00:28:10
阅读次数:
81
实现 pow(x, n) ,即计算 x 的 n 次幂函数。示例 1:输入: 2.00000, 10输出: 1024.00000示例 2:输入: 2.10000, 3输出: 9.26100示例 3:输入: 2.00000, -2输出: 0.25000解释: 2-2 = 1/22 = 1/4 = 0.2... ...
分类:
其他好文 时间:
2020-07-01 00:15:02
阅读次数:
43