Python:集合 集合set1.由不同元素组成的集合,集合是一组无序排列的,集合中的元素必须是不可变的定义集合第一种:jh = {1,2,3,4}print(type(jh),jh)运行结果:<class 'set'> {1, 2, 3, 4}Process finished with exit code 0第二种:jh = set('hello')print(type(... 编程语言 2023-11-29 69 点赞 1 评论 104 浏览