Python List object attribute 'append' is read-only

后端 未结 2 1317
生来不讨喜
生来不讨喜 2021-02-19 09:01

as the title says, in python, I\'m trying to make it so when someone types in a choice (in this case Choice13) then it deletes the old password from the list passwords and adds

2条回答
  •  萌比男神i
    2021-02-19 09:03

    or you could modify the same list slot by doing:

    passwords[passwords.index('mrjoeadmin')] = Choice13
    

提交回复
热议问题