You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repeating code the required number of times using loops
Using indentation to tell Python which code goes together
Building dictionaries to store pairs of associated values
Setting up files to read and process data
Adding modules to extend Python into new domains
Asking Copilot to explain code
使用循环实现代码的指定次数重复
用缩进标识哪些代码是一组
建立字典来保存一对一关联的值
设置文件读取和处理数据
添加模块,使 Python 拓展到新的领域
要求 Copilot 对代码进行解释
In Chapter 4, we explored five Python features that you’re going to see all the time as you continue in your programming journey: functions, variables, conditionals (if statements), strings, and lists. You need to know those features to read code, and we explained why being able to read code is important whether or not we’re using Copilot.
We’re going to continue in this chapter with five more Python features, which will round out our top 10. As in Chapter 4, we’ll do this through a combination of our own explanations, explanations from Copilot, and experimenting at the Python prompt.
Activity
[-][译] [500] 第五章 阅读 Python 代码(下)[/-][+][译] [500] 第五章 理解 Python 代码(下)[/+]cssmagic commentedon Aug 8, 2024
👉 想要更多译稿预览,请前往 总目录 中按章节阅读。