Merge pull request #157 from nonperforming/patch-3

Use emojis in feature list
This commit is contained in:
BLUELOVETH 2023-10-07 19:37:15 +08:00 committed by GitHub
commit eb615e1618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 39 deletions

View File

@ -114,26 +114,26 @@ for a quick overview of the supported features.
| Name | Example | Supported | | Name | Example | Supported |
| --------------- | ------------------------------- | --------- | | --------------- | ------------------------------- | --------- |
| If Else | `if..else..elif` | YES | | If Else | `if..else..elif` | |
| Loop | `for/while/break/continue` | YES | | Loop | `for/while/break/continue` | |
| Function | `def f(x,*args,y=1):` | YES | | Function | `def f(x,*args,y=1):` | |
| Subclass | `class A(B):` | YES | | Subclass | `class A(B):` | |
| List | `[1, 2, 'a']` | YES | | List | `[1, 2, 'a']` | |
| ListComp | `[i for i in range(5)]` | YES | | ListComp | `[i for i in range(5)]` | |
| Slice | `a[1:2], a[:2], a[1:]` | YES | | Slice | `a[1:2], a[:2], a[1:]` | |
| Tuple | `(1, 2, 'a')` | YES | | Tuple | `(1, 2, 'a')` | |
| Dict | `{'a': 1, 'b': 2}` | YES | | Dict | `{'a': 1, 'b': 2}` | |
| F-String | `f'value is {x}'` | YES | | F-String | `f'value is {x}'` | |
| Unpacking | `a, b = 1, 2` | YES | | Unpacking | `a, b = 1, 2` | |
| Star Unpacking | `a, *b = [1, 2, 3]` | YES | | Star Unpacking | `a, *b = [1, 2, 3]` | |
| Exception | `raise/try..catch` | YES | | Exception | `raise/try..catch` | |
| Dynamic Code | `eval()/exec()` | YES | | Dynamic Code | `eval()/exec()` | |
| Reflection | `hasattr()/getattr()/setattr()` | YES | | Reflection | `hasattr()/getattr()/setattr()` | |
| Import | `import/from..import` | YES | | Import | `import/from..import` | |
| Context Block | `with <expr> as <id>:` | YES | | Context Block | `with <expr> as <id>:` | |
| Type Annotation | `def f(a:int, b:float=1)` | YES | | Type Annotation | `def f(a:int, b:float=1)` | |
| Generator | `yield i` | YES | | Generator | `yield i` | |
| Decorator | `@cache` | YES | | Decorator | `@cache` | |
## Contribution ## Contribution

View File

@ -76,25 +76,25 @@ int main(){
| 特性 | 示例 | 支持 | | 特性 | 示例 | 支持 |
| ------------ | ------------------------------- | ---- | | ------------ | ------------------------------- | ---- |
| 分支 | `if..else..elif` | YES | | 分支 | `if..else..elif` | |
| 循环 | `for/while/break/continue` | YES | | 循环 | `for/while/break/continue` | |
| 函数 | `def f(x,*args,y=1):` | YES | | 函数 | `def f(x,*args,y=1):` | |
| 类与继承 | `class A(B):` | YES | | 类与继承 | `class A(B):` | |
| 列表 | `[1, 2, 'a']` | YES | | 列表 | `[1, 2, 'a']` | |
| 列表生成式 | `[i for i in range(5)]` | YES | | 列表生成式 | `[i for i in range(5)]` | |
| 切片 | `a[1:2], a[:2], a[1:]` | YES | | 切片 | `a[1:2], a[:2], a[1:]` | |
| 元组 | `(1, 2, 'a')` | YES | | 元组 | `(1, 2, 'a')` | |
| 字典 | `{'a': 1, 'b': 2}` | YES | | 字典 | `{'a': 1, 'b': 2}` | |
| 格式化字符串 | `f'value is {x}'` | YES | | 格式化字符串 | `f'value is {x}'` | |
| 序列解包 | `a, b = 1, 2` | YES | | 序列解包 | `a, b = 1, 2` | |
| 异常 | `raise/try..catch` | YES | | 异常 | `raise/try..catch` | |
| 动态分发 | `eval()/exec()` | YES | | 动态分发 | `eval()/exec()` | |
| 反射 | `hasattr()/getattr()/setattr()` | YES | | 反射 | `hasattr()/getattr()/setattr()` | |
| 导入模块 | `import/from..import` | YES | | 导入模块 | `import/from..import` | |
| 上下文管理器 | `with <expr> as <id>:` | YES | | 上下文管理器 | `with <expr> as <id>:` | |
| 类型标注 | `def f(a:int, b:float=1)` | YES | | 类型标注 | `def f(a:int, b:float=1)` | ✅ |
| 生成器 | `yield i` | YES | | 生成器 | `yield i` | |
| 装饰器 | `@cache` | YES | | 装饰器 | `@cache` | ✅ |
## 参考 ## 参考