上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页

2021年12月29日

basemap

摘要: m.drawmapboundary(color='red') # 绘制地图投影区域的边界,可选填充区域的内部 m.drawcoastlines() # 绘制海岸线 m.drawstates() # 划定美洲各州的边界。 m.drawrivers() # 画出主要河流。 m.drawlsmask() 阅读全文

posted @ 2021-12-29 10:26 闹不机米 阅读(94) 评论(0) 推荐(0) 编辑

2021年12月23日

xarray 绘制任意两点剖面图

摘要: metpy中的cross_section提供了非常便捷的绘制剖面图的方法,具体可见网: https://unidata.github.io/MetPy/latest/examples/cross_section.html#sphx-glr-examples-cross-section-py 如果只是 阅读全文

posted @ 2021-12-23 17:26 闹不机米 阅读(1984) 评论(1) 推荐(0) 编辑

2021年11月30日

pip 命令参数说明

摘要: 从本地目录文件安装(禁用联网检查PyPI) pip install --no-index --find-links=c:\xxx\xxx 或者.(相对当前目录) xxx.whl 或者 xxx.tar.gz 详细参考官方说明 https://packaging.python.org/tutorials 阅读全文

posted @ 2021-11-30 17:05 闹不机米 阅读(492) 评论(0) 推荐(0) 编辑

2021年11月29日

pyinstaller 打包成 exe

摘要: 通用参数 参数名描述说明 -h 显示帮助 无 -v 显示版本号 无 –distpath 生成文件放在哪里 默认:当前目录的dist文件夹内 –workpath 生成过程中的中间文件放在哪里 默认:当前目录的build文件夹内 -y 如果dist文件夹内已经存在生成文件,则不询问用户,直接覆盖 默认: 阅读全文

posted @ 2021-11-29 20:22 闹不机米 阅读(340) 评论(0) 推荐(0) 编辑

window 命令

摘要: 列出电脑上运行的 exe 程序 tasklist | findstr xxx.exe 阅读全文

posted @ 2021-11-29 11:51 闹不机米 阅读(21) 评论(0) 推荐(0) 编辑

2021年10月27日

线程,进程

摘要: 线程 from concurrent.futures.thread import ThreadPoolExecutor # 初始化线程池 设置最大线程数 executor = ThreadPoolExecutor(max_workers=5) for fn in range(10): # 任务数 # 阅读全文

posted @ 2021-10-27 23:30 闹不机米 阅读(45) 评论(0) 推荐(0) 编辑

2021年10月21日

denied: requested access to the resource is denied

摘要: 使用 docker push 镜像时,出现 denied: requested access to the resource is denied。原因和 Git push 代码一样,为了安全起见,在 Docker Hub 无法确定操作者的情况下,是无法完成 push 操作的。 需要使用 docker 阅读全文

posted @ 2021-10-21 10:00 闹不机米 阅读(198) 评论(0) 推荐(0) 编辑

python ftplib模块使用

摘要: Python中默认安装的ftplib模块定义了FTP类,可用来实现简单的ftp客户端,用于上传或下载文件。 ftp登陆连接 from ftplib import FTP #加载ftp模块 ftp=FTP() #设置变量 ftp.set_debuglevel(2) #打开调试级别2,显示详细信息 ft 阅读全文

posted @ 2021-10-21 09:55 闹不机米 阅读(236) 评论(0) 推荐(0) 编辑

cv2 报错 libGL.so.1: cannot open shared object file: No such file or directory

摘要: 问题描述 import cv2 from .cv2 import * libGL.so.1: cannot open shared object file: No such file or directory 该问题为docker内报错, 导入cv2错误 解决方法 sudo apt update s 阅读全文

posted @ 2021-10-21 09:35 闹不机米 阅读(766) 评论(0) 推荐(0) 编辑

2021年10月15日

linux 安装GDAL (python)

摘要: 安装 sqlite3 下载 https://www.sqlite.org/download.html 解压 tar -xvzf sqlite-snapshot-202110061004.tar.gz 编译安装 cd sqlite-snapshot-202110061004 ./configure m 阅读全文

posted @ 2021-10-15 19:06 闹不机米 阅读(2474) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页

导航