Skip to content
New issue

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

c01/c01_12 #55

Open
utterances-bot opened this issue Oct 14, 2022 · 3 comments
Open

c01/c01_12 #55

utterances-bot opened this issue Oct 14, 2022 · 3 comments

Comments

@utterances-bot
Copy link

1.12 神奇的 intern 机制 — Python黑魔法手册 1.0.0 documentation

https://magic.iswbm.com/c01/c01_12.html

Copy link

这就有点尴尬了 怎么避免在字符串比较出现 s1 is s2 = False

Copy link

rulke commented May 30, 2023

在3.9版本中发现没有长度限制了

Copy link

目前我在python 3.10版本,空格也启用intern机制,可以试试看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants