Python 'is' operator for two long strings

前端 未结 0 1756
悲哀的现实
悲哀的现实 2021-01-14 11:20
a = \'This is a very long string. This is a very long string. No?\'
b = \'This is a very long string. This is a very long string. No?\'

print(id(a), id(b))
print(a          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题