Union,联合类型,Union[X, Y] 代表要么是 X 类型,要么是 Y 类型。 Option[x] = Union[x, None] 参考自:https://www.cnblogs.com/KbMan/p/12095857.html