m0_74111013 2022-10-07 09:23 采纳率: 100%
浏览 40
已结题

python统计每个单词的长度并返回整数列表[x,y,z],并升序排列

para='Furthermore, the curve is the citation path connecting lines from the left side to the right side. This connection demonstrates the flow of knowledge inn different areas. The scattered points of the citing mapp aind the cited mapp are concentrated on the bottom side, involving many discipline categories. Finding the regions wiith the most citation launching points inn the citing portion on the mapp makes it straightforward to determine the disciplinary regions where a topic has advantages.'

  • 写回答

1条回答 默认 最新

  • Java大魔王 2022-10-07 09:33
    关注
    
    para='Furthermore, the curve is the citation path connecting lines from the left side to the right side. This connection demonstrates the flow of knowledge inn different areas. The scattered points of the citing mapp aind the cited mapp are concentrated on the bottom side, involving many discipline categories. Finding the regions wiith the most citation launching points inn the citing portion on the mapp makes it straightforward to determine the disciplinary regions where a topic has advantages.'
    para.replace(',', '')
    para_list = para.split(' ')
    print(para_list)
    dict = {}
    for item in para_list:
        if item not in dict:
            dict[item]= len(item)
    print(dict)
    # 取出所有的值,并排序
    dict_values_ist = list(dict.values())
    dict_values_ist.sort()
    print(dict_values_ist)
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录

报告相同问题?

问题事件

  • 系统已结题 10月15日
  • 已采纳回答 10月7日
  • 创建了问题 10月7日

悬赏问题

  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示