技术池(jishuchi.com) 本次搜索耗时 4.399 秒,为您找到 733 个相关结果.
  • 删除集合

    874 2020-12-15 《Python 教程》
    删除集合 删除集合 thisset = { "apple" , "banana" , "cherry" }   del thisset   print ( thisset ) #this will raise an error because the set no longer exists
  • 创建集合

    839 2020-12-15 《Python 教程》
    创建集合 创建集合 thisset = { "apple" , "banana" , "cherry" } print ( thisset )   # Note: the set list is unordered, meaning: the items will appear in a random order.   # R...
  • 使用 pop()方法删除集合中的最后一项

    825 2020-12-15 《Python 教程》
    使用 pop()方法删除集合中的最后一项 使用 pop()方法删除集合中的最后一项 thisset = { "apple" , "banana" , "cherry" }   x = thisset . pop ()   print ( x ) #removed item   print ( thisset ) ...