模块 1、什么是模块 模块就是一系列功能的集合体 模块分为四种类别: 1、一个py文件就可以是一个模块 2、包:就是一个存放有__ init__.py文件的文件夹 3、使用C编写并链接到python解释器的内置模块 4、已被编译为共享库或DDL的C或C++扩展 模块有三种来源: 1、python解释 ...
分类:
其他好文 时间:
2021-04-01 13:48:30
阅读次数:
0
# 需要修改oracle的配置数据库 import cx_Oracle from Common.dir_config import caps_dir import yaml class DoSql: def do_orcal(self,query_sql,state='all'): # 1打开yam ...
分类:
数据库 时间:
2021-04-01 13:48:10
阅读次数:
0
python的数据类型有:数字(int)、浮点(float)、字符串(str),列表(list)、元组(tuple)、字典(dict)、集合(set) 一般通过以下方法进行判断: 1、isinstance(参数1,参数2) 描述:该函数用来判断一个变量(参数1)是否是已知的变量类型(参数2) 类似于 ...
分类:
编程语言 时间:
2021-04-01 13:44:37
阅读次数:
0
export function createRulesByForm(form = {}, rules = [ { required: true, message: '这项是必填的', trigger: 'blur' }, { required: true, message: '这项是必填的', tr ...
分类:
其他好文 时间:
2021-04-01 13:42:50
阅读次数:
0
一、创建字典 字典特点: 符号位大括号 数据为键值对形式 各个键值对之间用逗号隔开 # 1. 有数据的字典 dict1 = {'name': 'Tom', 'age': 20, 'gender': 'male'} print(dict1) # 2. 创建空字典 dict2 = {} print(ty ...
分类:
编程语言 时间:
2021-04-01 13:38:17
阅读次数:
0
题目链接:https://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da?tpId=37&tqId=21224&rp=1&ru=%2Fta%2Fhuawei&qru=%2Fta%2Fhuawei%2Fquestion-rankin ...
分类:
编程语言 时间:
2021-04-01 13:24:31
阅读次数:
0
继承和派生 目录 一 继承介绍 1.1 什么是继承 1.2 为什么要有继承 二 继承与抽象(如何使用继承) 四 属性查找 五 继承的实现原理 5.1 菱形问题 5.2 继承原理 5.3 深度优先和广度优先 六 python Mixins机制 七 派生和方法重用 7.1 派生 7.2 方法重用 回到顶 ...
分类:
其他好文 时间:
2021-04-01 13:23:05
阅读次数:
0
Hello, Mr. Houben, this is Zhou Yanzhuo. I returned to China after being in quarantine for a month before I was able to contact people. Now I have fin ...
分类:
其他好文 时间:
2021-04-01 13:16:40
阅读次数:
0
1.pytorch报错:module 'torch.nn' has no attribute 'init 修改/home/expstu1/anaconda3/lib/python3.6/site-packages/torch/nn/__init__.py 文件在最后一行加from .init imp ...
分类:
编程语言 时间:
2021-04-01 13:16:21
阅读次数:
0
一个比较强的分析:针对item的乘除进行封装成方法,针对不同的方法进行item的乘除,但是还是不够简介 来个更加简洁的:这就有点像java里面的一些封装,多写这样的代码对之后的专业素养能有一个比较大的提升 原型: 原型prototype其实是function对象的一个属性,将其打印出来它也是对象。 ...
分类:
其他好文 时间:
2021-04-01 13:16:03
阅读次数:
0