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

View File

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