網路城邦
上一篇 回創作列表 下一篇   字體:
UVA 10815 Andy's First Dictionary
2025/03/26 02:32:26瀏覽94|回應0|推薦1

#Python

#UVA 10815

#Andys First Dictionary

from sys import stdin

from re import split

text = stdin.read()

text = text.strip().lower()

words = set(split(r[^a-z], text))

for word in sorted(words):

    if(word):

        print(word)

( 知識學習考試升學 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=aabbcc1&aid=182092770