Files
freeCodeCamp/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-course/python-iteration-and-modules.md
2021-07-15 13:04:11 +05:30

1.0 KiB

id, title, challengeType, videoId, dashedName
id title challengeType videoId dashedName
5e9a093a74c4063ca6f7c167 Python 迭代和模块 11 XzosGWLafrY python-iteration-and-modules

--description--

在视频中我们使用的编辑器工具是在 notebook.ai 这个平台,你也可以选择用其他的平台,比如说 Google Colab 也是一个不错的选择。

更多资源:

--question--

--text--

您将如何迭代并打印名为 user 的字典的键和值?

--answers--

for key in user.items():
    print(key)

for key, value in user.all():
    print(key, value)
    print(value)

for key, value in user.items():
    print(key, value)

for key, value in user
    print(key, value)

--video-solution--

3