小编ale*_*zik的帖子

如何比较2字符串与python

我想在python中比较两个字符串.

例如:

str1 = 'hello'

str2 = 'lolhe'
Run Code Online (Sandbox Code Playgroud)

我想比较str1str2得到结果True因为它们包含相同的字符.

python string compare character

-4
推荐指数
1
解决办法
4168
查看次数

标签 统计

character ×1

compare ×1

python ×1

string ×1