gpt4 book ai didi

python - 结果中的 "u"是什么(Python)?

转载 作者:行者123 更新时间:2023-11-28 22:37:47 25 4
gpt4 key购买 nike

<分区>

我正在阅读《Python Text Processing with NLTK》这本书,书上的结果是:

>>> stopwords.fileids()
['danish', 'dutch', 'english', 'finnish', 'french', 'german', 'hungarian', 'italian', 'norwegian', 'portuguese', 'russian', 'spanish', 'swedish', 'turkish']

但是当我在终端中运行代码时,结果是:

>>> stopwords.fileids()
[u'danish', u'dutch', u'english', u'finnish', u'french', u'german', u'hungarian', u'italian', u'norwegian', u'portuguese', u'russian', u'spanish', u'swedish', u'turkish']

每个字符串前面的“u”是什么?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com