It's okay to use initializer lists to initialize scalar variables, and the usual rule of type narrowing applies in such cases.
可以使用初始化器列表对标量变量进行初始化,在这种情况下应用一般的类型窄化规则。
The type coercion rules have changed to preserve types in arrays (more often), rather than converting to the type of a Python scalar.
改变了类型强制规则,以保持数组(更为常见)中的类型 ,而不是转换为 Python 标量的类型。
Since the Scalar return type has been selected, a data type for the returned value will now be required.
由于选择了Scalar返回类型,因此这里要提供返回值的数据类型。
应用推荐