def minMINmax(lst):
list2=[]
min1=int(min(lst))
max1=int(max(lst))
for i in range(min1,max1+1):
if str(i) not in lst:
list2.append(i)
MIN=int(min(list2))
print()
num=input("请输入一串数字:")
list1=num.split(',')
minMINmax(list1)
看看
中文版
英文是硬伤
def minMinmax(temp):
set1,mi,ma = set(temp),min(temp),max(temp)
Min = min(temp)+1
while Min:
if Min not in temp:
break
Min += 1
return
朕想知道
我需要看中文版英文真不行
222
1
budong
查看中文
看不懂英文...解開看題目先
樓主推推
def minMinMax(list1):
Max = max(list1)
mmin = min(list1)
Min = int(min(list1)) + 1
while True:
if Min > Max:
print('error! not exist the smallest number between the two array bounds that is not in the array.')
break
elif Min not in list:
list2 =
print(list2)
break
else:
Min += 1
list = input('please input a list:')
minMinMax(list)
当然看不懂英文我才来回复的
6666666
看看
def minMinMax(List):
List.sort()
index=0
length=len(List)
for each in range(length):
if not List==(List+1):
index = each
break
return ,List+1,List[-1]]
看看
学习一下
要中文版的