-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ee412a
commit 8994812
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# python_goto | ||
为Python提供goto支持 | ||
源于python包[goto-statement](https://pypi.org/project/goto-statement/#files),并使用[第三方补丁](https://github.com/cdjc/goto/blob/master/goto.py)修改了goto.py以提供Python3.11及以上版本支持。 | ||
理论上支持Python2/3,在Python 3.8.0/3.9.1/3.12.0rc1上实测有效。 | ||
|
||
## 安装 | ||
|
||
下载whl包后在其目录下执行`pip install goto` | ||
|
||
## 用法 | ||
|
||
```python | ||
from dominate.tags import label#自行使用pip install dominate=2.8.0安装 | ||
from goto import goto | ||
label .start | ||
#... | ||
goto .start | ||
``` |