We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
应该是加入了字符串缓冲池导致的?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
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
应该是加入了字符串缓冲池导致的?
The text was updated successfully, but these errors were encountered: