erg/doc/zh_TW/API/modules/repl.md
Cai Bingjun 557f03ffc9 WIP
2022-10-15 12:18:04 +08:00

26 lines
No EOL
874 B
Markdown

# 模塊`repl`
[![badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com%2Fdefault%2Fsource_up_to_date%3Fowner%3Derg-lang%26repos%3Derg%26ref%3Dmain%26path%3Ddoc/EN/API/modules/repl.md%26commit_hash%3D06f8edc9e2c0cee34f6396fd7c64ec834ffb5352)](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/API/modules/repl.md&commit_hash=06f8edc9e2c0cee34f6396fd7c64ec834ffb5352)
提供REPL(Read-Eval-Print-Loop)相關的API
## 功能
* `gui_help`
在瀏覽器中查看有關對象的信息。可以離線使用
## 類型
### 猜測 = 對象
#### 方法
* `.guess`
在給定參數和返回值的情況下推斷函數
```python
1.guess((1,), 2) # <Int.__add__ method>
[1, 2].guess((3, 4), [1, 2, 3, 4]) # <Array(T, N).concat method>
```