从 pypi 下载软件包(非安装)文件
以 httpx 软件包为例:
pip download httpx
以 httpx 软件包为例:
pip download httpx
macOS 命令行终端里如何显示当前目录结构,查看当前目录及其子目录中的所有文件和文件夹,并以树状结构展示出来。
可以使用自带的 ls
命令。安装和使用 tree
命令效果更好。
例如多个项目用到自己写的一个存储在本地的依赖包。这个包会持续的修正更新。
这样做的好处是当修改这个包的代码时,引用此包的项目也将立即使用修改后的代码。
在使用过程中如何更好的引导 ChatGPT,有一些经验技巧分享如下。
🤔️ 有时候 ChatGPT 的回答内容别截断了,如何显示剩余内容
可以向它说:继续
🤔️ 让 ChatGPT 对主题输出更多相关内容
和上面的需求类似。我们可以给出提示,并引导回答更多相关内容。
继续
请更深入更详细的说明xxx
请给出一些具体案例
加入一些吸引xxx关于xxx的引言和介绍
把xxx部分写长一些
先是引用。然后是翻译。
以下英文引用自 warp docs
handle
.handle
function MUST accept exactly two arguments: state
and action
state
argument MUST be the current state of the contract.action
argument MUST contain caller
field (i.e. Arweave wallet address) and input
field. The input
field MUST contain the function
field and any additional data required to perform given operation.input
field MUST NOT exceed 2048 bytes.handle
function MUST terminate by either:
{ state: newState }
- this will cause the contract state to be updated{ result: newResult }
ContractError
以下是我的翻译:
KeyCastr
按键可视化。例如录制视频教程时很有用,在屏幕上显示当前的按键。
也支持显示鼠标的操作。
开源、免费。
KeyboardCleanTool
暂时锁定键盘和触控板。比如暂时离开电脑时避免猫咪🐈“帮你写作” :P。或给键盘清灰时或许能用到。
免费。
嗨,我是芦苇Z。本文是 macOS新手进阶系列。
在使用 Mac / Macbook 时,快速找到并启动应用程序是提升日常操作效率的关键。今天梳理分享 macOS 平台上几款优秀的启动器工具,从官方的 Spotlight 到第三方的 Alfred、Raycast 等,帮你找到最适合自己的效率助手。
Array.shift()
For example:
var arr = [1, 2, 3, 4];
var theRemovedElement = arr.shift(); // theRemovedElement == 1
console.log(arr); // [2, 3, 4]
首先使用 GitHub API 获得项目中每种语言的代码行数,
API: https://api.github.com/repos/<user/repo>/languages
,替换其中的 <user/repo>
。
例如 curl https://api.github.com/repos/cli/cli/languages
,
返回的结果示例:
Use PDM to export Python project dependencies to requirements.txt file.
pdm export --pyproject > requirements.txt
or
pdm export --pyproject -o requirements.txt
Export lockfile
pdm export > requirements.lock