python代码如下:
# python中set函数基本用法示例(编程之家 jb51.cc整理)
se = set(range(4))
li = list(se)
tu = tuple(se)
st = str(se)
print(li,type(li))
print(tu,type(tu))
print(st,type(st))
OUTPUT:
[0,1,2,3]
(0,3)
{0,3}
# 来自jb51.cc
原文链接:https://www.f2er.com/python/527353.html