我这么写也对啊?大佬对不对?哪位大佬看看指点下啊
names = [ ]
new_names = ['Jenny', 'Ellena', 'Alice', 'Candy', 'David', 'Hally', 'Bob', 'Isen', 'Karl']
name_set = set(names)
name_set.update(new_names)
print(name_set)
names = [ ]
new_names = ['Jenny', 'Ellena', 'Alice', 'Candy', 'David', 'Hally', 'Bob', 'Isen', 'Karl']
name_set = set(names)
name_set.update(new_names)
print(name_set)
2022-03-02
举报