1078100248 发表于 2022-7-14 10:10:39

x =

baishitou 发表于 2022-7-18 21:13:15

w =

654699055 发表于 2022-7-18 21:18:22

学习一下

tommyyu 发表于 2022-8-2 18:14:08

list(filter(, len(i)>5))

陈大宝与王德发 发表于 2022-8-2 21:03:23

大佬666大佬777大佬888

pythontyllr 发表于 2022-8-3 17:24:28

{:5_90:}

qq545246419 发表于 2022-8-21 16:55:47

w =

import re

w =

hveagle 发表于 2022-8-24 09:31:10

>>> text = """
Once upon a time there were three little sisters,
the Dormouse began in a great hurry;
and their names were Elsie, Lacie, and Tillie;
and they lived at the bottom of a well.
‘What did they live on?’ said Alice,
who always took a great interest in questions
of eating and drinking."""
>>>
>>> w =
>>>
>>> print(w)
['little', 'sisters,', 'Dormouse', 'hurry;', 'Elsie,', 'Lacie,', 'Tillie;', 'bottom', 'Alice,', 'always', 'interest', 'questions', 'eating', 'drinking.']

fourthbro 发表于 2022-8-26 17:24:46

先看答案

allen-xy 发表于 2022-9-7 17:06:53



['little', 'sisters,', 'Dormouse', 'hurry;', 'Elsie,', 'Lacie,', 'Tillie;', 'bottom', 'Alice,', 'always', 'interest', 'questions', 'eating', 'drinking.']

suntek 发表于 2022-9-8 15:36:24

看答案

JOJIN 发表于 2022-9-9 14:52:29

w = list(filter(lambda x:len(x)>5 , text.split()))

付言博 发表于 2022-9-10 14:20:55

text = """
Once upon a time there were three little sisters,
the Dormouse began in a great hurry;
and their names were Elsie, Lacie, and Tillie;
and they lived at the bottom of a well.
‘What did they live on?’ said Alice,
who always took a great interest in questions
of eating and drinking."""
h = ""
g = []
e = 0
for i in text:
    h = h + i
    if i == " ":
      g.append(h)
      h = ""

for y in range(len(h)):
    if len(h) >= 5:
      g.append(h)
    e = e + 1

print(i)

hqk770 发表于 2022-9-12 17:40:26

666

hqk770 发表于 2022-9-12 17:50:03

w=set(i for i in text.split() if len(i)> 5)

python鱼new 发表于 2022-9-17 13:48:10

1

不老松 发表于 2022-9-29 15:38:43

学习

jack6666 发表于 2022-10-15 15:08:47

1

yuhao3 发表于 2022-11-2 10:11:50

len

大饭想好好学习 发表于 2022-11-3 18:23:41

w =
w = list(filter(lambda x:len(x)>5, text.split()))
页: 1 2 [3] 4 5 6
查看完整版本: 请用一行代码找出多于5个字符的单词