TypeError: ‘type’ object is not subscriptable 这个错误是因为python版本<=3.8导致的。 如果不想升级python版本,那就把函数的后面的—>后的东西都删除,不要搞注释了