1、这个包下面有哪些东西? 2、为什么说 pytest是一个包? 这个文件夹下有一个文件,叫__init__.py,这是一个包标识文件。即有这个文件的文件夹,python中不叫文件夹,叫包或者模块。 这个模块__init__.py的作用(简单说一下结论) (1)做包标识工具。防止不同包中存在相同的. ...
分类:
其他好文 时间:
2021-03-03 12:13:48
阅读次数:
0
Security and Cryptography in Python - Hash Functions(3) How password are Verified https://docs.python.org/3/library/hashlib.html https://en.wikipedia. ...
分类:
编程语言 时间:
2021-03-03 12:13:31
阅读次数:
0
from A import * # 会将A下所有内容都导入到当前文件,包括A里面的导入的模块 from A import a, b, C # 指定导入内容 from AA.A import something # 导入填写绝对路径 环境变量 PYTHONPATH 指定的路径,路径下所有包都能直接导入 ...
分类:
编程语言 时间:
2021-03-03 12:12:21
阅读次数:
0
shell #! /bin/bash #外层循环 for ((i=1;i<=9;i++)) do #内层循环 for ((j=1;j<=i;j++)) do #计算2个数的乘积 let "product=i*j" #输出乘积 printf "i*i?j=$product" #输出空格分隔符 if [ ...
分类:
编程语言 时间:
2021-03-03 11:55:14
阅读次数:
0
模块 整形 浮点型 字符串 列表 字典 集合 元组 布尔值 collection模块 # namedtuple:具名元组 from collections import namedtuple # 导入模块方式 point = namedtuple('坐标',['x','y']) # 关键字named ...
分类:
编程语言 时间:
2021-03-03 11:51:10
阅读次数:
0
问题:pyhton 3安装module报错ERROR: Could not find a version that satisfies the requirement config.paths % pip install config.paths ERROR: Could not find a ve ...
分类:
编程语言 时间:
2021-03-03 11:48:53
阅读次数:
0
在使用Image模块的时候,出现一个错误。 ValueError: Unknown resampling filter (50). Use Image.NEAREST (0), Image.LANCZOS (1), Image.BILINEAR (2), Image.BICUBIC (3), Ima ...
分类:
编程语言 时间:
2021-03-03 11:46:51
阅读次数:
0
1 1 import pymysql 2 2 3 3 db = pymysql.connect(host='localhost', user='root', password='123456', database='jddj',port=3306) 4 4 cursor = db.cursor() ...
分类:
数据库 时间:
2021-03-02 12:38:55
阅读次数:
0
Pytest源码分析 By:授客 QQ:1033553122 测试环境 pytest 5.4.3 测试脚本mytest.py #!/usr/bin/env python # -*- coding:utf-8 -*- import pytest def test_func(): # test开头的测试 ...
分类:
其他好文 时间:
2021-03-02 12:31:05
阅读次数:
0
今天实现数据批量插入, 看了https://blog.csdn.net/weixin_42796152/article/details/107931768 《基于python,pandas,pymysql 将数据批量高效写入mysql数据库(保证可以用的那种)》的程序和自己编写的 insertMan ...
分类:
数据库 时间:
2021-03-02 12:29:40
阅读次数:
0