python问题,,,急。。。 Inserting into a list 非常短。。。。

日期:2021-10-26 04:07:13 人气:1

python问题,,,急。。。 Inserting into a list 非常短。。。。

def insert(lst,v):
  i,length=1,len(lst)
  while i<length and lst[length-i]<=v:
    i+=1
  lst.insert(length-i,v)

非常短是什么意思?,这

    A+
热门评论