豆豆豆1111 2021-08-20 08:32 开发者_如何学Python需要3500分,
Something like: for (a,b) in kwargs.iteritems(): if not b : del kwargs[a] This code raise exception because changing of dictionary when iterating.