跳至内容
首页Python

课程

Python 工具箱

基础技能水平
更新时间 2025年12月
继续通过学习迭代器和列表推导式来提升你的现代数据科学技能。
免费开始课程
PythonProgramming
4小时
12 视频
46 道练习
3,800 XP
310K+
成就证明

创建您的免费帐户

继续使用 Google显示更多选项


继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

深受数千家公司学习者的喜爱

Group

需要团队培训?

企业版试用

课程描述

在本门 Python 工具箱课程中,您将继续提升更高级的 Python 技能。首先,您会学习迭代器,这类对象您已在 for 循环中接触过。接着,您将学习列表推导式,这是所有使用 Python 的数据从业者和开发者都非常实用的工具。课程最后,您将通过一个案例研究,把本课程两部分中学到的所有技术综合应用起来。视频包含实时字幕,您可以点击视频左下角的 "Show transcript" 进行查看。 课程术语表位于右侧的资源部分。 若要获得 CPE 学分,您需要完成课程并在合格测评中取得 70% 的成绩。您可以点击右侧的 CPE 学分提示进入测评。

先决条件

Introduction to Functions in Python
1

Using iterators in PythonLand

You'll learn all about iterators and iterables, which you have already worked with when writing for loops. You'll learn some handy functions that will allow you to effectively work with iterators. And you’ll finish the chapter with a use case that is pertinent to the world of data science and dealing with large amounts of data—in this case, data from Twitter that you will load in chunks using iterators.
开始章节
2

List comprehensions and generators

In this chapter, you'll build on your knowledge of iterators and be introduced to list comprehensions, which allow you to create complicated lists—and lists of lists—in one line of code! List comprehensions can dramatically simplify your code and make it more efficient, and will become a vital part of your Python toolbox. You'll then learn about generators, which are extremely helpful when working with large sequences of data that you may not want to store in memory, but instead generate on the fly.
开始章节
Python 工具箱
课程完成

获得成就证明

将此证书添加到您的 LinkedIn 档案、简历或履历中
在社交媒体和绩效评估中分享
立即注册

加入超过19百万学习者,今天就开始Python 工具箱!

创建您的免费帐户

继续使用 Google显示更多选项


继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

通过 DataCamp for Mobile 提升您的数据技能

随时随地通过我们的移动课程和每日 5 分钟编程挑战提升技能。