小编low*_*oom的帖子

是否有内置函数在python中保持一定数量的数字?

python库中是否存在类似的内容?

def func(num, start, end):
    if num <= start:
        return start
    if num >= end:
        return end
    return num
Run Code Online (Sandbox Code Playgroud)

python python-2.7

8
推荐指数
1
解决办法
242
查看次数

标签 统计

python ×1

python-2.7 ×1