Counter in Collections module Python

后端 未结 4 1690
耶瑟儿~
耶瑟儿~ 2020-11-29 10:17

I\'ve come across a really weird problem. I\'m trying to use Counter function in collections module. However, I keep getting the same error message

Attribut         


        
4条回答
  •  天命终不由人
    2020-11-29 11:15

    You're probably using an old version of Python, the Counter class, as stated in the documentation was added in version 2.7.

提交回复
热议问题