2016级3、4班计算机导论
2016-9-26 10:35
请先登录。

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
[4,5,1,2,0]
[4,5,1,2,0]

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1、[5,4,1,2,0] 2、def func(L): a=len(L) l=[] for i in range(a): x=min(L) ...
1、[5,4,1,2,0] 2、def func(L): a=len(L) l=[] for i in range(a): x=min(L) ...

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1.[5, 4, 1, 2, 0]2.
1.[5, 4, 1, 2, 0]2.

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1.[5, 4, 1, 2, 0] 2.#<将列表元素从小到大排序> def main(L): X=[] for i in range(0,len(L)): a=m...
1.[5, 4, 1, 2, 0] 2.#<将列表元素从小到大排序> def main(L): X=[] for i in range(0,len(L)): a=m...

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1.[5,4,1,2,0]
1.[5,4,1,2,0]

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1. 5,4,1,2,0 2. def g(ls): ll=[] i=0 x=len(ls) while i<=x: i+=1 x=max(ls)...
1. 5,4,1,2,0 2. def g(ls): ll=[] i=0 x=len(ls) while i<=x: i+=1 x=max(ls)...

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1.ll=[5,4,1,2,0] 2.def a(L1): l=sorted(L1,reverse=True) return l L2=a([1,3,5,2,4]) print(L2)
1.ll=[5,4,1,2,0] 2.def a(L1): l=sorted(L1,reverse=True) return l L2=a([1,3,5,2,4]) print(L2)

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
[5, 4, 1, 2, 0]
[5, 4, 1, 2, 0]

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1、[4, 5, 1, 2, 0] 2、
1、[4, 5, 1, 2, 0] 2、

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1.[5, 4, 1, 2, 0] 2.L=[1,3,5,2,4] M=[] while L!=[]: M.append(max(L)) L.remove(max(L)) print(M)
1.[5, 4, 1, 2, 0] 2.L=[1,3,5,2,4] M=[] while L!=[]: M.append(max(L)) L.remove(max(L)) print(M)

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1。[5, 4, 1, 2, 0] 2.
1。[5, 4, 1, 2, 0] 2.

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1: [5,4,1,2,0] 2: def f(L): a=len(l) l=() for i in range(a): x=max(L) L.remove(...
1: [5,4,1,2,0] 2: def f(L): a=len(l) l=() for i in range(a): x=max(L) L.remove(...

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1,ll=[5,4,1,2,0] 2,def g(ls): L=[] i=0 x=len(ls) wh...
1,ll=[5,4,1,2,0] 2,def g(ls): L=[] i=0 x=len(ls) wh...

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1. 5,4,1,2,0 2.def f(L): a=len(L) l=[] for i in range(a): x=ma...
1. 5,4,1,2,0 2.def f(L): a=len(L) l=[] for i in range(a): x=ma...

#2016级3、4班计算机导论# 的任务
任务6:Python(三) 有了新的提交。
1 [5,4,1,2,0] 2 def f(L): a=len(L) l=[] for i in range(a): x=max(L) L.remove(x) l.append(x) L+=lL=...
1 [5,4,1,2,0] 2 def f(L): a=len(L) l=[] for i in range(a): x=max(L) L.remove(x) l.append(x) L+=lL=...

给 #2016级3、4班计算机导论# 指派了新任务。
任务6:Python(三)
1、读程序写结果
2、假设一个列表中的元素都是整型值,现在请设计一个函数实现将列表元素从小到大排序。例如:原列表为[1,3,5,2,4],调用函数之后列表为[5,4,3,2,1]

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1, L:[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] (L[0:4]):[1, 1.3, '2', 'China'] (L[0:4:2]):[1, '2'...
1, L:[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] (L[0:4]):[1, 1.3, '2', 'China'] (L[0:4:2]):[1, '2'...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [][ ['I', 'am'...
[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [][ ['I', 'am'...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] (1)输出L[1, 1.3, '2', 'China'](2)输出元素[1, '2'](3)输出四个元素中的奇数位[](4) [...
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] (1)输出L[1, 1.3, '2', 'China'](2)输出元素[1, '2'](3)输出四个元素中的奇数位[](4) [...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [] ...
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [] ...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1:(1)L=[1,1.3,'2','China',['I','am','another','List'],'Hello Word!'] (2)[1,1.3,'2','China'] (3)[1,'2'] (4)[] (5)[] (6)[['I','am','anothe...
1:(1)L=[1,1.3,'2','China',['I','am','another','List'],'Hello Word!'] (2)[1,1.3,'2','China'] (3)[1,'2'] (4)[] (5)[] (6)[['I','am','anothe...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [] [['I', 'a...
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [] [['I', 'a...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1、 (1)L.append("Hello World!") 结果:N/A 含义:在列表L末尾加入"Hello World!"元素 (2)print(L) 结果:[1, 1.3, '2', 'China', ['I'...
1、 (1)L.append("Hello World!") 结果:N/A 含义:在列表L末尾加入"Hello World!"元素 (2)print(L) 结果:[1, 1.3, '2', 'China', ['I'...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1题(1)[1,1.3,"2","China",["I","am","another","list"],"Hello World!"] (2)[1,1.3,"2","China"] (3)[1,"2"] (4)[ ["I","am","another","l...
1题(1)[1,1.3,"2","China",["I","am","another","list"],"Hello World!"] (2)[1,1.3,"2","China"] (3)[1,"2"] (4)[ ["I","am","another","l...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1、1,1.3,"2","China",["I","am","another","list"],"Hello World!" 1,1.3,"2","China" [1, '2'] [] [] ...
1、1,1.3,"2","China",["I","am","another","list"],"Hello World!" 1,1.3,"2","China" [1, '2'] [] [] ...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World'] [1, 1.3, '2', 'China'] [1, '2'] [] [] ...
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World'] [1, 1.3, '2', 'China'] [1, '2'] [] [] ...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1、[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [] [[...
1、[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'] [1, 1.3, '2', 'China'] [1, '2'] [] [] [[...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'][1, 1.3, '2', 'China'][1, '2'][][][['I', 'am', 'another', 'list...
1.[1, 1.3, '2', 'China', ['I', 'am', 'another', 'list'], 'Hello World!'][1, 1.3, '2', 'China'][1, '2'][][][['I', 'am', 'another', 'list...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1.a.L=[1,1.3,"2","China",["I","am","another","list"],"Hello World!"] 总结:列表的声明形式:L=[];列表中的元素可以不同;索引号从左向右由0递增,从右往左由-1递减;...
1.a.L=[1,1.3,"2","China",["I","am","another","list"],"Hello World!"] 总结:列表的声明形式:L=[];列表中的元素可以不同;索引号从左向右由0递增,从右往左由-1递减;...

#2016级3、4班计算机导论# 的任务
任务5:Python(二) 有了新的提交。
1.[1,1.3,"2","China",["I","am","anther","list"],"hello word"] [1,1.3,"2,"China"] [1,"2"] [] [] [["I","am",...
1.[1,1.3,"2","China",["I","am","anther","list"],"hello word"] [1,1.3,"2,"China"] [1,"2"] [] [] [["I","am",...