其它
其它
llc的足迹
print("hello csdn!")
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
nginx put delete ERR_CONNECTION_RESET 不能访问解决办法
nginx put delete ERR_CONNECTION_RESET 不能访问解决办法原创 2022-10-13 13:46:34 · 2840 阅读 · 0 评论 -
下载必应卫星瓦片
import requests def tile_to_quadkey(tile, level): """Transform tile coordinates to a quadkey""" tile_x = tile[0] tile_y = tile[1] quadkey = "" for i in range(level): bit = level - i digit = ord('0') mask = 1 &l原创 2021-06-15 15:10:58 · 770 阅读 · 0 评论 -
linux gbk批量转换为utf8
if [ ! -d "./utf8_txt" ]; then mkdir ./utf8_txt fi for txt in *.txt do iconv -f gbk -t utf8 $txt > ./utf8_txt/$txt done原创 2020-08-09 10:29:45 · 279 阅读 · 0 评论 -
Pyinstaller打包记录
项目目录 test.py data - test.txt - text1.txt 测试脚本 import rtree from rtree import index if __name__ == "__main__": idx = index.Index() left, bottom, right, top = (0.0, 0.0, 1.0, 1.0) idx.in...原创 2020-03-31 10:18:35 · 440 阅读 · 0 评论 -
supervisor 常用问题记录
使用supervisor管理python进程时日志不能正常输出 使用python -u test.py 可解决 python -h ... -u : force the stdout and stderr streams to be unbuffered; this option has no effect on stdin; also PYTHONUNBUFFERED=x ...原创 2020-06-22 11:04:41 · 334 阅读 · 0 评论 -
supervisor、uwsgi配置文件
supervisor [program:app] command=uwsgi /work/app/conf/uwsgi.ini autostart=true autorestart=true # 将stderr的日志写入stdout日志文件中 redirect_stderr=true stdout_logfile=/data/log/supervisor.log uwsgi [uwsgi] # ...原创 2020-04-24 14:05:21 · 887 阅读 · 0 评论 -
fiona学习笔记
安装 GDAL版本:3.0.4 Fiona版本:1.8.13 读取数据 import fiona with fiona.open('./data/test_4326.shp', 'r') as source: print(source.meta) print(source.bounds) print(source.crs) print(source.crs_wkt...原创 2020-03-12 16:28:31 · 942 阅读 · 4 评论 -
图片数据量大小计算
计算公式:宽度✖高度✖波段数✖位深➗8 假设图片的宽高为:52195 41587,波段数为:3,位深:8 数据量大小为:52195✖41587✖3✖8➗8=6,511,900,395 byte=6.06 GB 单位换算: 1位=8 byte 1 KB=1024 byte原创 2020-07-19 11:02:09 · 11376 阅读 · 2 评论
分享