Python 从源码路径安装依赖包

例如多个项目用到自己写的一个存储在本地的依赖包。这个包会持续的修正更新。
这样做的好处是当修改这个包的代码时,引用此包的项目也将立即使用修改后的代码。

与 ChatGPT 对话的艺术与技巧

在使用过程中如何更好的引导 ChatGPT,有一些经验技巧分享如下。

🤔️ 有时候 ChatGPT 的回答内容别截断了,如何显示剩余内容
可以向它说:继续

🤔️ 让 ChatGPT 对主题输出更多相关内容
和上面的需求类似。我们可以给出提示,并引导回答更多相关内容。
继续
请更深入更详细的说明xxx
请给出一些具体案例
加入一些吸引xxx关于xxx的引言和介绍
把xxx部分写长一些

Arweave 智能合约代码的规范

先是引用。然后是翻译。

以下英文引用自 warp docs

  1. A contract source code MAY be written in ES module format.
  2. A contract source MUST contain function (sync or async) named handle.
  3. A contract source MAY use IIFE bundling format.
  4. The handle function MUST accept exactly two arguments: state and action
  5. The state argument MUST be the current state of the contract.
  6. The 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.
  7. The maximum size of the JSON.stringified representation of the input field MUST NOT exceed 2048 bytes.
  8. The handle function MUST terminate by either:
    1. returning { state: newState } - this will cause the contract state to be updated
    2. returning { result: newResult }
    3. throwing ContractError

以下是我的翻译: