1 Star 0 Fork 1

王其/托管

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
20211408ch066.py 375 Bytes
Copy Edit Raw Blame History
王其 authored 2021-11-15 12:07 +08:00 . add 20211408ch066.py.
#coding=utf-8
s_dict = {102:"张三",105:"李四",109:"王五"}
print("---遍历键---")
for s_id in s_dict.keys():
print("学号:"+str(s_id))
print("---遍历键---")
for s_name in s_dict.values():
print("学号:" + s_name)
print("---遍历键---")
for s_id,s_name in s_dict.items():
print("学号:{0} - 学生:{1}".format(s_id,s_name))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wang-qi3206/trusteeship.git
git@gitee.com:wang-qi3206/trusteeship.git
wang-qi3206
trusteeship
托管
master

Search