Python-Core-50-Courses icon indicating copy to clipboard operation
Python-Core-50-Courses copied to clipboard

第10课:字符串的使用 is判断在python3.10.11中为True

Open sniperwang00 opened this issue 1 year ago • 3 comments

s1 = 'hello world' s2 = 'hello world' s3 = s2

print(s1 == s2, s2 == s3) # True True print(s1 is s2, s2 is s3) # False True

实际执行结果为: True True True True

应该是加入了字符串缓冲池导致的?

sniperwang00 avatar May 22 '23 07:05 sniperwang00

这是来自QQ邮箱的假期自动回复邮件。您发给我的信件已经收到。

hbjcstkl2020 avatar May 22 '23 07:05 hbjcstkl2020

您好信以收到   将在下次登陆gmail或qqmail后进行回复

b11152 avatar May 22 '23 07:05 b11152

邮件已收到,辛苦了!!!

CHAMPIOM1 avatar May 22 '23 07:05 CHAMPIOM1