📌  相关文章
📜  从列表中弹出一个字符串 python 代码示例

📅  最后修改于: 2022-03-11 14:45:56.934000             🧑  作者: Mango

代码示例1
my_list = [12, 'Siya', 'Tiya', 14, 'Riya', 12, 'Riya']
my_list.remove(12) # it will remove the element 12 at the start.
print(my_list)
my_list.remove('Riya') # will remove the first Riya from the list
print(my_list)
my_list.remove(100)  #will throw an error
print(my_list)