先贴链接:Constructs
Supported constructs:
- conditional branch:
if .. elif .. else
- loops:
while
,for .. in
,break
,continue
- basic generator:
yield
- assertion:
assert
Partially supported constructs:
- exceptions:
try .. except
,raise
,else
andfinally
(See details in this section) - context manager:
with
(only support numba.objmode()) - list comprehension (see details in this section)
Unsupported constructs:
- async features:
async with
,async for
andasync def
- class definition:
class
(except for @jitclass) - set, dict and generator comprehensions
- generator delegation:
yield from
可以看到, numba 不支持 dict !!!
所以 numba 的最大的缺点就是不支持 dict
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。