From 9abd5173e4033f6b5250d29e3f40525e28bdeb8f Mon Sep 17 00:00:00 2001 From: chenxuan Date: Tue, 6 Oct 2026 14:07:59 +0800 Subject: [PATCH] ...... --- pythonProject/数据类型/元祖/1.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pythonProject/数据类型/元祖/1.py b/pythonProject/数据类型/元祖/1.py index afc9644..f7f1906 100644 --- a/pythonProject/数据类型/元祖/1.py +++ b/pythonProject/数据类型/元祖/1.py @@ -8,10 +8,12 @@ contacts = { 'sex':"男", 'salary':'8000' } -print(b) +# print(b) contacts[a] = 'xxx' # 元祖作为字典的key print(contacts) -print(contacts[a]) +# print(contacts[a]) print('-----') print(a[0]) -print(a[1]) \ No newline at end of file +print(a[1]) +print(contacts[('键盘', '鼠标')]) +print(contacts['sex']) \ No newline at end of file