报错:AttributeError: module ‘tensorflow‘ has no attribute ‘flags‘

改成如下:

报错原因:tensorflow1.x与2.x版本问题不兼容