列表=["aeouis...,.,,esw","trees..,,ioee", '".....wwqqow..","...,...,,,","uouiyteerff..,,", ",w," ]
我需要创建第二个列表作为输出。每个元素的输出将包含该元素中存在的唯一元音,并且 高:对于strin中75%或以上的元音, 中等:元素中40-75%的元音, 低:如果元素中的元音少于40%,或
无元音:如果字符串中没有元音
和Null:如果字符串长度小于5
因此,输出将类似:[[a,e,o,u,i]low
,[e,i,o]medium
,没有元音,没有元音,[u,o,i,e]low, NULL]
我们可以用列表来理解吗
我会这样做:
相关问题 更多 >
编程相关推荐