7895人加入学习
(35人评价)
Python零基础入门学习2020最新版(SiKi)

使用Python3.8 于2019/10/20开始录制

价格 免费

def check(l):
          while len(l)>5:
                    del(l[5:])
                    return l
print(check([1,2,3,4,5,6,7,8,9,10]))

 

del(l[2]):这个对吗?

 

def test(l):
          newl = []
          for i in range(1,len(l),2):
                    newl.append(l[i])
          return newl
l = [1,2,3,4,5,6,7,8,9]
print(test(l))

[展开全文]

授课教师

SiKi学院老师

课程特色

视频(137)
下载资料(1)