更新了文档中的笔误

This commit is contained in:
jackfrued 2025-03-28 18:29:18 +08:00
parent d8d8b938c3
commit 7a798e481d
2 changed files with 7 additions and 7 deletions

View File

@ -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