1.集合的add函数
1.1add的功能
用于集合中添加一个元素,如果集合中已经存在该元素,则该函数不执行。
1.2add的用法
add函数无返回值,只作用于当前的集合。...{'flask', 'django', 'python'}
{True, 'python', 'django', 'flask', None}
{'a', True, 'c', 'python',...'
{'flask', 'python', 'django'}
{True, 'python', 'django', None, 'flask'}
{True, 'python', 'django',...'a', 'b', None, 'flask', 'c'}
{'t', True, 'p', 'python', 'django', 'h', 'n', 'a', 'y', 'b', None, 'o'..., 'flask', 'c'}
{'t', True, 'p', 'django', 'h', 'n', 'a', 'y', 'b', None, 'o', 'flask', 'c'}
set()
进程已结束