Flashield's Blog

Just For My Daily Diary

Flashield's Blog

Just For My Daily Diary

Day: January 20, 2024

04.exercise-lists【练习:列表】

This notebook is an exercise in the Python course. You can reference the tutorial at this link. Try It Yourself Things get more interesting with lists. See if you can solve the questions below. Remember to run the following cell first. 自己尝试一下 有了列表,事情就变得更有趣了。 看看你能否解决下面的问题。 请记住首先运行以下单元格。 from learntools.core import binder; binder.bind(globals()) from learntools.python.ex4 import * print('Setup […]

04.course-lists【列表】

Lists Lists in Python represent ordered sequences of values. Here is an example of how to create them: 列表 Python 中的列表表示有序的值序列。 以下是如何创建它们的示例: primes = [2, 3, 5, 7] We can put other types of things in lists: 我们可以将其他类型的事物放入列表中: planets = ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune'] We can even make a list of […]

Scroll to top