代碼如下:student = ['c', 'c', 'c']a, b, c = studentprint(student)運(yùn)行結(jié)果:['c', 'c', 'c']
1 回答

慕神8447489
TA貢獻(xiàn)1780條經(jīng)驗(yàn) 獲得超1個(gè)贊
>>> a, b, c =student
相當(dāng)于:
>>> a, b, c = student[0], student[1], student[2]
>>> a
'c'
>>> b
'c'
>>> c
'c'
student 本身不會(huì)發(fā)生變化。
添加回答
舉報(bào)
0/150
提交
取消