iohannes
Published on 2025-03-14 / 2 Visits

== 和 is

a = 'hello world'
b = 'hello world'
a == b  #返回True 
a is b  #返回False 
  • is 判断是否是一个ID
  • == 判断内容是否相等