06 2021 档案

摘要: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 阅读(44) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示