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

慕神8447489
TA貢獻1780條經驗 獲得超1個贊
>>> a, b, c =student
相當于:
>>> a, b, c = student[0], student[1], student[2]
>>> a
'c'
>>> b
'c'
>>> c
'c'
student 本身不會發生變化。
添加回答
舉報
0/150
提交
取消