- 博客(6)
- 收藏
- 关注
原创 Python学习
Python解压文件 import zipfile import os def unzip(zip_filepath, dest_path): """ 解压zip文件 """ with zipfile.ZipFile(zip_filepath) as zf: zf.extractall(path=dest_path) def get_dataset_filename(zip_filepath): """ 获取数据库文
2021-05-12 11:38:35 56
原创 2021-03-24
** SpringBoot学习(一) 一、配置pom.xml(重要) pom.xml文件添加依赖相当于以前调用别人已经将写好的jar包,需要什么添加什么。 例如: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
2021-03-24 23:40:57 63
原创 pandas学习与使用
pandas库 pandas是一个操作数据的一个库 以泰塔尼克号船员为例(数据集可以上github上下载) 读取数据集 titanic_surv=pd.read_csv("titanic_train.csv") 显示数据集的指定一列 age=titanic_surv["Age"]#显示年龄这一列 判断数据是否为null,null值为True,否则为False age_is_null=pd.isnull(age) age_is_null 显示出结果: 0 False 1 F
2020-12-26 13:50:29 75 1
原创 python中操作
python中操作 1.不同的赋值操作 a=np.arange(15) b=a print(a is b) b.shape=(3,5) print(a.shape) print(id(a)) print(id(b)) #地址一样,操作b就相当于操作a 输出结果: True (3, 5) 2449637172128 2449637172128 c=a.view()#相当于浅复制,与b=a不同 print(a is c) c.shape=(3,5) print(a.shape) c[0,4]=123 prin
2020-12-23 15:22:32 71
原创 python学习
python的numpy库的学习 numpy库中关于矩阵的知识 numpy.genfromtxt学习 import numpy as np world_alcohol=np.genfromtxt("C:/Users/liuju/OneDrive/Desktop/liu.txt",str) print(type(world_alcohol)) print(world_alcohol) print(help(np.genfromtxt)) 3.python 科学计算:getfromtex函数详解 4.在数
2020-12-22 21:57:48 79
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人