科学网

 找回密码
  注册
Python cad 实践一
李鸿斌 2021-11-17 22:51
Python cad 实践一 from pyautocad import Autocad , APoint import pandas as pd acad = Autocad () entities = acad . get_selection () for entity in entities : if AcDbPolyline in entity .ObjectName: &n ...
个人分类: python 语言学习|2326 次阅读|没有评论
关于geopandas 与 contextily 安装冲突的解决方法
李鸿斌 2021-3-4 16:03
geopandas contextily geopandas 的安装依赖fiona,fiona依赖gdal 库,所以在安装geopandas 库时,会将gdal库安装。 但是在安装contextily 库配合geopandas库进行绘图操作时,contextily又依赖rasterio库,rasterio的安装必须是在gdal 的安装完成下进行的 ,二者对gdal 库的版本要求不一样,所以经常导致冲突, ...
个人分类: python 语言学习|2794 次阅读|没有评论
jupyter notebook 遇到的问题 " DLL load failed"
李鸿斌 2021-2-24 10:28
jupyter notebook 启动问题 ****错误: from . import libzmq ImportError: DLL load failed while importing libzmq: The specified module could not be found. ****解决方法: &nbs ...
个人分类: python 语言学习|3541 次阅读|没有评论
python 获取文本中的指定行 并写入csv
李鸿斌 2021-1-20 11:56
import os import linecache import pandas as pd lne= for root,dirs,files in os.walk(os.getcwd()): for file in files:   ...
个人分类: python 语言学习|2681 次阅读|没有评论
python pillow库 python界的ps 实现数据批量盖章 并打包成exe
李鸿斌 2021-1-12 16:10
python pillow库完成数据批量盖章 打包成相应的exe 盖章前   ...
个人分类: python 语言学习|2819 次阅读|没有评论
python 调用wget 自动下载香港cors数据 统计站点数据空缺
李鸿斌 2020-12-23 18:08
import os,sys import wget path= ftp://ftp.geodetic.gov.hk/rinex2 year= input ( 请输入您要下载的年份: ) yr=year ptname= day= int ( input ( 请输入您要下载的天数: )) ft=[] out_dir= C://User ...
个人分类: python 语言学习|1852 次阅读|没有评论
读取碎部点测量数据模拟地形仿真绘制等高线图
李鸿斌 2020-6-30 00:39
import pandas as pd import matplotlib . pyplot as plt from mpl_toolkits . mplot3d import Axes3D import numpy as np from scipy . interpolate import griddata fig = plt . figure () ax = Axes3D ( fig ) df = pd . rea ...
个人分类: python 语言学习|1805 次阅读|没有评论
matplotlib
李鸿斌 2020-6-28 17:59
https://www.notion.so/matplotlib-6db9835ba00b4640a76108fb0e783383
个人分类: python 语言学习|1404 次阅读|没有评论
python 学习笔记
李鸿斌 2020-6-25 23:35
python学习 math 模块 精确除 :’/’ :3/2=1.5 地板除:’//’ : 3//2=1 取模操作:’%’:4%2=1 math.modf(-1.24) == (-02.4, -1) math.modf(1.56) ==(0.56,1.0) math.modf 商和余数 度分秒转换为十进制度 dem = deg=dms +dms /60.0+dms /3600.0 deg 1.0341666666 ...
个人分类: python 语言学习|1447 次阅读|没有评论
python 文本读写 及从一个文件写到另一个文件
李鸿斌 2020-5-25 11:58
with open(C:\\Users\\Administrator\\Desktop\\23\\56.txt, a, encoding=utf-8) as g: g.write(name,,y,x,h) f= open (C:\\Users\\Administrator\\Desktop\\23\\sy.txt,r,encoding=utf-8) ...
个人分类: python 语言学习|4129 次阅读|没有评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-20 18:48

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部