上一页 1 2 3 4 5 6 7 8 9 ··· 42 下一页
摘要: Locust 是一个开源负载测试工具,使用 Python 代码定义用户行为 安装 pip install locust 查看是否安装成功 locust -V 测试locustfile.py import time from locust import HttpUser, task, between 阅读全文
posted @ 2021-02-03 12:37 慕尘 阅读(771) 评论(0) 推荐(1)
摘要: 今天想更换nodejs版本,使用node v14.15.4,下载的zip包,设置完环境变量,检查是否安装成功 >node -v Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher. Setting t 阅读全文
posted @ 2021-01-27 14:16 慕尘 阅读(4647) 评论(0) 推荐(0)
摘要: 在其他机器上跑的好好的,但是在某台机器上却遇到 gm Error: Command failed: ��Ч���� - /data nodejs代码如下 const gm = require('gm').subClass({ imageMagick: true }); gm(imagePath).r 阅读全文
posted @ 2021-01-27 12:39 慕尘 阅读(339) 评论(0) 推荐(0)
摘要: 今天有人的nodejs代码遇到,413 request entity too large,很熟悉的报错,以前使用koa解决过,这次的也记录一下 具体报错为 PayloadTooLargeError: request entity too large at readStream (D:\nodejs\ 阅读全文
posted @ 2021-01-22 21:53 慕尘 阅读(3470) 评论(0) 推荐(0)
摘要: 在使用node-canvas时,由于更换了node版本遇到 Error: The module '\\?\D:\nodejs\node_modules\canvas\build\Release\canvas.node'was compiled against a different Node.js 阅读全文
posted @ 2021-01-15 16:30 慕尘 阅读(5916) 评论(0) 推荐(0)
摘要: nvm是node的版本管理工具 在windows下安装nvm-windows,下载地址 https://github.com/coreybutler/nvm-windows/releases 选择下载 nvm-setup.zip 安装好后会设置环境变量 验证是否安装成功 说明: 由于之前安装的v12 阅读全文
posted @ 2021-01-15 12:41 慕尘 阅读(983) 评论(0) 推荐(0)
摘要: Faker是一个Python软件包,可为用来生成伪造数据 安装 pip install Faker 安装好后,可以直接使用faker命令 $ faker -h usage: faker [-h] [--version] [-v] [-o output] [-l LOCALE] [-r REPEAT] 阅读全文
posted @ 2021-01-13 13:08 慕尘 阅读(1048) 评论(0) 推荐(0)
摘要: 今天使用git bash 执行Python时,遇到中文乱码 data.py from mimesis import Person person = Person('zh') print(f'name: {person.surname() + "" + person.name()}') $ pytho 阅读全文
posted @ 2021-01-13 12:45 慕尘 阅读(955) 评论(0) 推荐(1)
摘要: Mimesis是一个用于Python的高性能伪数据生成器, 支持多种不同的语言 可以用来生成各种测试数据、假的 API 、任意结构的 JSON 、XML 数据 安装 pip install mimesis eg: from mimesis import Person person = Person( 阅读全文
posted @ 2021-01-13 12:31 慕尘 阅读(1374) 评论(0) 推荐(0)
摘要: diagrams云系统架构原型图制作库 官网 https://diagrams.mingrammer.com/ github地址 https://github.com/mingrammer/diagrams 1.准备 Diagrams 使用 Graphviz 来渲染图表,先安装 Graphviz 2 阅读全文
posted @ 2021-01-07 23:43 慕尘 阅读(3790) 评论(0) 推荐(1)
摘要: Graphviz 是一款由 AT&T Research 和 Lucent Bell 实验室开源的可视化图形工具,可以很方便的用来绘制结构化的图形网络,支持多种格式输出 使用dot作为脚本语言 官网 https://www.graphviz.org/ 下载 https://www.graphviz.o 阅读全文
posted @ 2021-01-07 22:15 慕尘 阅读(847) 评论(0) 推荐(0)
摘要: geoplotlib是一个用于可视化地理数据和绘制地图的python工具箱 能创建地图、制作交互地图和可视化动画 安装 pip install geoplotlib github地址 https://github.com/andrea-cuttone/geoplotlib 需要 pyglet pip 阅读全文
posted @ 2021-01-07 13:33 慕尘 阅读(2426) 评论(0) 推荐(0)
摘要: playwright是微软开源的自动化项目 git地址 https://github.com/microsoft/playwright-python 官网 https://playwright.dev/ 安装 pip install playwright 查看支持的功能 python -m play 阅读全文
posted @ 2021-01-07 12:21 慕尘 阅读(4209) 评论(0) 推荐(0)
摘要: Folium是Leaflet.js的Python的API 通过folium可以使用Python来调用Leaflet的地图可视化能力 Leaflet是一个前端地图可视化库 文档 https://python-visualization.github.io/folium/ 安装 pip install 阅读全文
posted @ 2021-01-06 13:13 慕尘 阅读(1074) 评论(0) 推荐(0)
摘要: python工具——basemap使用一 1.数据准备 下载中国shapefile格式的资料 下载地址 https://gadm.org/download_country_v3.html 2.示例 绘制黑白地图 from mpl_toolkits.basemap import Basemap imp 阅读全文
posted @ 2021-01-06 08:47 慕尘 阅读(3342) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 42 下一页