更新了文档中的笔误
This commit is contained in:
parent
d8d8b938c3
commit
7a798e481d
|
|
@ -10,7 +10,7 @@
|
|||
# 定义一个三元组
|
||||
t1 = (35, 12, 98)
|
||||
# 定义一个四元组
|
||||
t2 = ('骆昊', 43, True, '四川成都')
|
||||
t2 = ('骆昊', 45, True, '四川成都')
|
||||
|
||||
# 查看变量的类型
|
||||
print(type(t1)) # <class 'tuple'>
|
||||
|
|
@ -36,7 +36,7 @@ for elem in t1:
|
|||
# 成员运算
|
||||
print(12 in t1) # True
|
||||
print(99 in t1) # False
|
||||
print('Hao' not in t2) # False
|
||||
print('Hao' not in t2) # True
|
||||
|
||||
# 拼接运算
|
||||
t3 = t1 + t2
|
||||
|
|
|
|||
Loading…
Reference in New Issue