ul55ppw8/ #12
Replies: 2 comments 2 replies
-
|
初学者在初次阅读对于步长的解释时会产生一些困惑。如果把列表增长可能更容易体现出步进的效果,或者也可以增加一些语言描述,如“[(a), (a+c), (a+2c), (a+3c), ...]”。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
在二维索隐部分 : “当我们输入的索引为 3:6时,输出的是原列表索引为 4 到 6 的片段”应更正为 “当我们输入的索引为 3:6时,输出的是原列表索引为 3 到 5 的片段” |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ul55ppw8/
本文以列表举例,字符串与之类似,将在最后简单对比。 一维:索引 我们经过 1.6 章节的学习已经知道,我们定义一个列表 a = [1, 2, 3] ,可以通过 a[0] a[1] a[2] 的方式取出其中的每一项。 这就是最简单的索引,现在在这个的基础上,我们再介绍一个负数索引。 我们定义这样的一个列表,并尝试打印它的每一项: 可以看到, 0,1,2....
https://python.yxzl.dev/ul55ppw8/
Beta Was this translation helpful? Give feedback.
All reactions