为什么打印出来的结果是 Pual
sadd=set(['Adam','Lisa','Pual']) lremove=['Adam','Lisa','Bart','Pual'] for lr in lremove: if lr in sadd: sadd.remove(lr) else: sadd.add(lr) print(lr)
sadd=set(['Adam','Lisa','Pual']) lremove=['Adam','Lisa','Bart','Pual'] for lr in lremove: if lr in sadd: sadd.remove(lr) else: sadd.add(lr) print(lr)
2019-07-08
举报