AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
>[success] Counter 统计列表中出现次数 ~~~ from collections import Counter words = [ "look", "into", "my", "eyes", "look", "into", "my", "eyes", "the", "eyes", "the", "eyes", "not", "around" ] print(Counter(words)) 打印结果: Counter({'eyes': 4, 'my': 2, 'into': 2, 'look': 2, 'the': 2, 'around': 1, 'not': 1}) ~~~