可以,集合中的项可以是任何数据类型:字符串、整型和布尔数据类型:set1 = {"apple", "banana", "cherry"}set2 = {1, 5, 7, 9, 3}set3 = {True, False, False}