LEEUNITYAssets / Content / 博客.asset
层级
⌄ Lee / Homepage
INSPECTOR
Type
Content
Name
博客
lee@mtftm.com ↗GitHub ↗
N039LANGUAGES / PYTHON

技术 / English

Numba

Automatically compile Python functions into high-performance machine code using @jit or @njit.

更新
2025.05.05
阅读
1 分钟
语言
English

Introduction

Automatically compile Python functions into high-performance machine code using @jit or @njit.

Installation

pip install numba

Usage Example

from numba import njit

@njit
def add(a, b):
    return a + b

print(add(1, 2))  # Output: 3