摘要: 1.统计字符串字符频次 (1) def count_seq(seq): result = {word: seq.count(word) for word in seq} return result seq = 'abcdfedhfvjxgfhsfhdgasdfcg' print(count_seq( 阅读全文
posted @ 2021-06-10 22:12 enjoyzier 阅读(52) 评论(0) 推荐(0)