python的数据类型有:数字(int)、浮点(float)、字符串(str),列表(list)、元组(tuple)、字典(dict)、集合(set) 一般通过以下方法进行判断: 1、isinstance(参数1,参数2) 描述:该函数用来判断一个变量(参数1)是否是已知的变量类型(参数2) 类似于 ...
分类:
编程语言 时间:
2021-04-01 13:44:37
阅读次数:
0
一、创建字典 字典特点: 符号位大括号 数据为键值对形式 各个键值对之间用逗号隔开 # 1. 有数据的字典 dict1 = {'name': 'Tom', 'age': 20, 'gender': 'male'} print(dict1) # 2. 创建空字典 dict2 = {} print(ty ...
分类:
编程语言 时间:
2021-04-01 13:38:17
阅读次数:
0
一、大纲 vxlogcfg -a -p ProductID -c ConfigPath -n Names [-q] vxlogcfg -a -p ProductID -o OriginatorID -s keyname=value [-q] vxlogcfg -a -p ProductID -g L ...
分类:
其他好文 时间:
2021-04-01 13:35:41
阅读次数:
0
1、安装 npm i pm2 -g 2、启动 pm2 start .\app.js --name cesiumdemo 3、查看 pm2 ls 4、重启 pm2 restart cesiumdemo 5、停止 pm2 stop cesiumdemo 6、删除 pm2 delete cesiumdem ...
分类:
其他好文 时间:
2021-04-01 13:31:32
阅读次数:
0
1 MySQL 1.1 安装 在root用户权限下 # 创建mysql用户和用户组,同时禁止登陆 shell> groupadd mysql shell> useradd -r -g mysql -s /bin/false mysql # tar解压mysql压缩包,同时把他移到你向安装的位置 sh ...
分类:
数据库 时间:
2021-04-01 13:30:26
阅读次数:
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
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
Python 元组(类似于数组指针,存储在常量区) Python的元组与列表类似,不同之处在于元组的元素不能修改。 元组使用小括号,列表使用方括号。 元组创建很简单,只需要在括号中添加元素,并使用逗号隔开即可。 访问元组 元组可以使用下标索引来访问元组中的值,如下实例: tup1 = (12, 34 ...
分类:
其他好文 时间:
2021-04-01 13:14:30
阅读次数:
0
首先先定义一个list,将其转存为csv文件,看将会报什么错误:list=[[1,2,3],[4,5,6],[7,9,9]]list.to_csv('e:/testcsv.csv',encoding='utf-8')运行后出现:Traceback (most recent call last): F ...
分类:
编程语言 时间:
2021-04-01 13:12:24
阅读次数:
0