Geoffreylee
发表于 2020-3-11 16:14:45
本帖最后由 Geoffreylee 于 2020-3-11 16:16 编辑
def minMinMax(lst: list) -> int:
lst.sort()
for i in range(len(lst)):
try:
if lst - lst != 1:
return , lst+1, lst[-1]]
except IndexError:
return , 'None', lst[-1]]
print(minMinMax())
holiday_python
发表于 2020-6-28 15:38:27
def minMinMax(s):
#排序数组
#最大值和最小值
#非数组的最小值
min_num = min(s)
max_num = max(s)
for i in range(min_num, max_num+1):
if i not in s:
Min_num = i
break
list_num =
return list_num
print(minMinMax([-1, 4, 5, -23, 24]))
print(minMinMax())
print(minMinMax())
wenhj1997
发表于 2020-7-8 14:25:02
做题做题
小陨aoq
发表于 2020-7-30 20:22:24
让我康康
z2x2c8
发表于 2020-8-31 13:58:42
看看
aironeng
发表于 2020-12-2 09:27:38
学习