我正在迭代Python中的元组列表,并且如果它们符合某些条件,我会尝试删除它们.
for tup in somelist: if determine(tup): code_to_remove_tup
我应该用什么代替code_to_remove_tup?我无法弄清楚如何以这种方式删除项目.
code_to_remove_tup
python iteration
iteration ×1
python ×1