mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 19:23:58 +08:00
3 lines
50 B
Python
3 lines
50 B
Python
def clip(x, lo, hi):
|
|
return max(lo, min(hi, x))
|