mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
79ca8c9ec9
old-commit-hash: e94a30bec0
3 lines
50 B
Python
3 lines
50 B
Python
def clip(x, lo, hi):
|
|
return max(lo, min(hi, x))
|