Python Set clear()方法
Python 3 教程
· 2019-02-06 18:12:05
描述
clear() 方法用于移除集合中的所有元素。
语法
clear()方法语法:
set.clear()
参数
- 无。
返回值
无。
实例
移除 fruits 集合中的所有元素:
实例 1
fruits = {"apple", "banana", "cherry"}
fruits.clear()
print(fruits)
输出结果为:
set()
点击查看所有 Python 3 教程 文章: https://codercto.com/courses/l/10.html
Practical Django Projects, Second Edition
James Bennett / Apress / 2009 / 44.99
Build a django content management system, blog, and social networking site with James Bennett as he introduces version 1.1 of the popular Django framework. You’ll work through the development of ea......一起来看看 《Practical Django Projects, Second Edition》 这本书的介绍吧!
URL 编码/解码
URL 编码/解码
html转js在线工具
html转js在线工具