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