Python中是否有一个空传播运算符(“null-aware member access”运算符),所以我可以编写类似的东西
var = object?.children?.grandchildren?.property
就像在 C#、VB.NET 和 TypeScript 中一样,而不是
var = None if not myobject\
or not myobject.children\
or not myobject.children.grandchildren\
else myobject.children.grandchildren.property