python二维列表
求各位大神给点思路,搞了一下午都没搞懂,刚刚学习,不怎么会,求指教 list_info = [["张晓",17,"女",8,3,4.2],["李敏",15,"男",7,2,3.4],["亚洲舞王",16,"男",8,1,4.0],["李艳",15,"女",8,1,3.3]]
for i in list_info:
print(f"{i}的信息是: \n{i}岁,{i}性,{i}年级{i}班,成绩{i}") https://s3.xoimg.com/i/2022/04/12/xqrglp.png student_info = [["李敏", 15, "男", 7, 2, 3.4], ["赵四", 16, "男", 8, 1, 4.0]]
student_info.append(["李艳", 15, "女", 8, 1, 3.3])
student_info.insert(0, ["张晓", 17, "女", 8, 3, 4.2])
for sdt in student_info:
print('{}的信息是: \n{}岁,{}性,{}年级{}班,成绩{}'.format(sdt, sdt, sdt, sdt, sdt, sdt)) 马了顶大 发表于 2022-4-12 21:44
student_info = [["李敏", 15, "男", 7, 2, 3.4], ["赵四", 16, "男", 8, 1, 4.0 ...
感谢大神 制冷设备 发表于 2022-4-12 20:38
list_info = [["张晓",17,"女",8,3,4.2],["李敏",15,"男",7,2,3.4],["亚洲舞王", ...
感谢大神 制冷设备 发表于 2022-4-12 20:41
感谢大神了 xiadongming 发表于 2022-4-12 21:06
想要干什么?把这个内容输入到计算机?还是怎么样,,
有大神给出思路了,还是谢谢你回复我的问题。
页:
[1]