Discuss / Python / 我所了解得到一个note

我所了解得到一个note

Topic source

对于集合,如果要创建一个空集合,不能使用s={}来创建空集合,因为这样创建的是一个dict。创建集合可以使用s={xx,xx,xx},也可以使用set([xx,xx,xx]),但创建空集合只能使用s=set()

hoodks

#2 Created at ... [Delete] [Delete and Lock User]

谢谢补充,赞!


  • 1

Reply