Spyder中AttributeError: module 'tensorflow' has no attribute 'flags'报错

用的是tensorflow2.2.0版本,针对 del_all_flags(tf.flags.FLAGS),提示AttributeError: module 'tensorflow' has no attribute 'flags',有没有大佬帮忙解答一下~