代码示例:(标识:python_set_length)
python_set_length.py
thisset = {"apple", "banana", "cherry"}

print(len(thisset))
运行结果: