In order to save memory in Python3, many things that originally used List for storage are replaced with iterators, so when you want to slice, you will get an error. You can use list to make a copy.
TypeError: ‘dict_keys‘ object is not subscriptable
Guess you like
Origin blog.csdn.net/weixin_40539952/article/details/107574816
Ranking