0

TypeError Traceback(最近一次调用最后一次)在

1 slt = SortedList(load = 1000)
      2 assert slt._load == 10000
      3 assert slt._twice == 20000
      4 assert slt._half == 5000
      5 slt._check()

TypeError: new () got an unexpected keyword argument 'load'

4

1 回答 1

0

这可能来得有点晚,但似乎 sortedcontainers 中的 load 参数已从更高版本中删除。它应该仍然适用于 1.5.7 版本。

https://github.com/mcocdawc/chemcoord/issues/54

于 2021-09-01T17:18:23.900 回答