如何基于输入参数以不同的方式初始化NamedTuple子类?
I am building a typing.NamedTuple class (see typing.NamedTuple docs here, or the older collections.namedtuples docs it inherits from) that can accept different ways of being initialized.
在这种情况下为什么要命名为Tuple?我希望它是不可变的和可自动哈希的,因此它可以是字典键,而我不必编写哈希函数。
I understan...