04 2021 档案

摘要:>>> s = txt.lower().split()>>> dd = {}>>> for word in s:... if word not in dd:... dd[word] = 1... else:... dd[word] = dic[word] + 1...>>> ss = sorted( 阅读全文
posted @ 2021-04-22 20:58 WillJayD 阅读(45) 评论(0) 推荐(0)
摘要:总共有多少学生?map(), distinct(), count() 开设了多少门课程? 每个学生选修了多少门课?map().countByValue() //map(), countByKey() 每门课程有多少个学生选?map(), countByValue() Tom选修了几门课?每门课多少分 阅读全文
posted @ 2021-04-12 20:11 WillJayD 阅读(27) 评论(0) 推荐(0)