需求

定义有默认值的集合

定义空集合


示例


s1 = {"a","b","c"}
print(s1)


s2 = set()
print(s2)

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.