小编avi*_*al 的帖子

如何将字符串与列表中的下一个字符串进行比较?

我正在编写一个小型NLP算法,我需要执行以下操作:

对于列表中的每个字符串x ["this", "this", "and", "that"],如果字符串x和下一个字符串相同,我想打印字符串.

python string compare list next

2
推荐指数
2
解决办法
2万
查看次数

标签 统计

compare ×1

list ×1

next ×1

python ×1

string ×1