3 回答

TA贡献1853条经验 获得超9个赞
del list_item[4]del dictionary["alpha"]
del
del foo
foo = None
del foo
foo = None
foo = None
del foo

TA贡献1775条经验 获得超11个赞
del
删除名称将从本地或全局命名空间中删除该名称的绑定。
None

TA贡献1840条经验 获得超5个赞
del
sys.exc_info()
try: do_evil()except: exc_type, exc_value, tb = sys.exc_info() if something(exc_value): raise
tb
try: do_evil()except: exc_type, exc_value, tb = sys.exc_info() del tb if something(exc_value): raise
sys.exc_info()
exc_type, exc_value = sys.exc_info()[:2]
添加回答
举报