02 2023 档案

ubuntu中更新安装node.js
摘要:sudo apt update #下载Ubuntu下的nodejs sudo apt install nodejs #安装新版的node 和npm sudo apt-get install curl curl -sL https://deb.nodesource.com/setup_18.x | s 阅读全文

posted @ 2023-02-27 14:50 星河赵 阅读(122) 评论(0) 推荐(0) 编辑

Ubuntu20.04如何更换国内源
摘要:1.打开终端。 2.输入以下命令备份原来的源。 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 3.再输入以下命令打开sources.list配置文件更换源。 sudo vim /etc/apt/sources.list 配置内容如下 阅读全文

posted @ 2023-02-24 10:27 星河赵 阅读(13924) 评论(0) 推荐(1) 编辑

docker 操作笔记
摘要:1.Docker 创建ubuntu系统更换 apt-get源 创建Dockerfile并且更新apt源 在Dockerfile中添加如下两句代码: RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.li 阅读全文

posted @ 2023-02-23 18:05 星河赵 阅读(121) 评论(0) 推荐(0) 编辑

Python 使用grequests发送并发请求
摘要:Python requests 并发请求 requests是Python发送接口请求非常好用的一个三方库,由K神编写,简单,方便上手快。但是requests发送请求是串行的,即阻塞的。发送完一条请求才能发送另一条请求。为了提升测试效率,一般我们需要并行发送请求。这里可以使用多线程,或者协程,geve 阅读全文

posted @ 2023-02-11 21:21 星河赵 阅读(225) 评论(0) 推荐(0) 编辑

Python requests.Session 协程 下载文件
摘要:Python requests.Session 协程 下载文件 # coding: utf-8 from gevent import monkey monkey.patch_all() from gevent.pool import Pool import gevent import request 阅读全文

posted @ 2023-02-06 18:21 星河赵 阅读(198) 评论(0) 推荐(0) 编辑

Python 根据经纬度坐标计算位置
摘要:高德API 经纬度地址查询:https://lbs.amap.com/tools/picker 示例代码 from math import radians, cos, sin, asin, sqrt # 公式计算两点间距离(m) def geodistance(lng1, lat1, lng2, l 阅读全文

posted @ 2023-02-02 15:47 星河赵 阅读(317) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示