- 博客(25)
- 收藏
- 关注
原创 【Python】平面多边形Wachspress坐标、中值坐标的计算及其等高线
平面多边形Wachspress坐标、中值坐标的计算及其等高线的python实现
2022-06-13 16:08:40
921
2
转载 【Python】python链表
python链表总结原Blog链接:https://blog.youkuaiyun.com/qq_44941689/article/details/1224029381. 链表基本类型链表(Linked List):一种线性表数据结构。它使用一组任意的存储单元(可以是连续的,也可以是不连续的),来存储一组具有相同类型的数据。即「链表」 是实现线性表的链式存储结构的基础。单链表每个数据元素占用若干存储单元的组合称为一个「链节点」,还要存放一个指出这个数据元素在逻辑关系上的直接后继元素所在链节点的地址,该地址被
2022-05-31 16:41:54
22611
5
原创 【Python】python中列表元素的删除方法
python中列表元素的删除方法1. 删除指定位置的值:pop()函数可以结合 ′abcdaefaa′.index(′a′)'abcdaefaa'.index('a')′abcdaefaa′.index(′a′) 返回第一个字符a的索引;#删除字符串中的最后一个字符s='hello, goodboy!'s_=list(s)#将字符串转换为列表s_.pop(-1)#pop掉列表最后一个值,返回被pop掉的值''.join(s_)#将pop之后的列表通过join()函数转换为字符串2.
2022-05-31 16:24:15
2540
原创 【Python】python—clickhouse 连接以及sql语句运行
python—clickhouse 连接1. 安装驱动包win+R打开cmd,输入如下安装代码pip install -i https://pypi.tuna.tsinghua.edu.cn/simple click_driver2. 数据库连接from clickhouse_driver import Clienthost = '192.xxx.x.xxx' #服务器地址port = 8123 #端口 # 不需要端口user = 'user'#用户名password='Password
2022-05-10 16:50:27
2011
原创 【Python】python与MySQL的链接——pymysql
PyMysql模块的简单使用可参考链接:https://blog.youkuaiyun.com/qq_43102443/article/details/1073947941. pymysql模块安装pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pymysql2. 数据库链接import pymysql# 创建链接# conn = pymysql.connect(# host='你的数据库地址',# user='用户名
2022-05-06 11:10:16
562
原创 【Python】python镜像源配置方法
1. 临时配置pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Package例子:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpypip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandaspip install -i https://pypi.tuna.tsinghua.edu.cn/sim
2022-05-06 09:59:31
5204
转载 【Python】Matplotlib处理中文乱码问题
第一种是临时解决方案,第二种是一劳永逸的解决方案。经个人实测,并非100%成功,在代码中将plt.style.use() 放在标题、坐标轴、刻度等设置之后,成功率更高。一、重写配置文件通过临时重写配置文件的方法,可以解决 Matplotlib 显示中文乱码的问题,代码如下所示:import matplotlib.pyplot as pltplt.rcParams["font.sans-serif"]=["SimHei"] #设置字体plt.rcParams["axes.unicode_minus
2022-05-05 10:59:36
1952
转载 【Python】三维画图——matplotlib以及np.mgrid的使用
详情请看链接!!!写的是真不错!!!https://blog.youkuaiyun.com/u014636245/article/details/82799573主要是讲述了如何再python中创建三维坐标轴对象Axes3D使用mpl_toolkits.mplot3d导入对象Axes3D来实现# 使用Axes3D建立三维坐标,然后使用matplotlib绘制三维曲面import matplotlib.pyplot as pltimport mpl_toolkits.mplot3dimport py
2022-04-25 22:03:55
2323
原创 【Python】mayavi安装
python使用windows+R后输入cmd打开命令行;在命令行中输入Pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mayavi这里目测是安装成功。进行代码测试:from numpy import pi, sin, cos, mgriddphi, dtheta = pi/250.0, pi/250.0[phi,theta] = mgrid[0:pi+dphi*1.5:dphi,0:2*pi+dtheta*1.5:d..
2022-04-25 20:39:37
3254
转载 Ubuntu中JDK配置
Ubuntu中JDK配置方法博客园链接:https://www.cnblogs.com/luoli-/p/9247952.html
2022-03-27 21:36:41
1399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人