TypeError: 'bool' object is not callable g.user.is_authenticated()

此问题查了*后知道is_authenticated是一个属性而不是一个方法所以g.user.is_authenticated() 用法会报错