课程
/后端开发
/Python
/初识Python
a[2]a[0]赋值给b[0]b[2]
怎么list a本身也发生变化呢
2020-10-05
源自:初识Python 4-6
正在回答
代码块中第9行中声明了b等于a
a[2] = "Bart",a[0] = "Adam"
b[0],b[2] = a[2],a[0] ==> b[0] = "Bart",b[2] = "Adam"
==> b = ["Bart", "Lisa", "Adam"]
b = a ==> a = ["Bart", "Lisa", "Adam"]
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序