文、意如
複習常用的類型
1.字典 2.list 3.tuple 4.set 5.字串 6.整數 7.浮點數 8.布林
#複習常用的類型
#dict
dict1={"key":"value","key":"value"}
print(dict1)
#list
list2=["value1","value2"]
print(list2)
#tuple
tuple3=("value1","value2")
print(tuple3)
#set
it3c= {"computer","notebook","phone"}
print(it3c)
#string
string4="abc"
print(string4)
#int
int5=123
print(int5)
#float
float6=123.12
print(float6)
#bool
bool7=True
print(bool7)
Yiru@Studio - 關於我 - 意如