📜  python代码示例中的set和tuple

📅  最后修改于: 2022-03-11 14:45:54.180000             🧑  作者: Mango

代码示例1
#Turples 
#are odered not to be changable Turples and are Written under perenthisis
this_tuple = ("apple", "banana", "cherry", "apple", "cherry")
print(this_tuple)
#Set
#are odered to be changable and Sets are written with curly brackets.
this_set = {"apple", "banana", "cherry", "apple"}
print(this_set)