mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 14:32:07 +08:00
3 lines
50 B
Python
3 lines
50 B
Python
def clip(x, lo, hi):
|
|
return max(lo, min(hi, x))
|