来源:https://stackoverflow.com/questions/52493462/accessing-an-attribute-of-a-variable-typed-as-union-throws-an-error 标签 python python-3.x static-typing