Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c01/c01_24 #44

Open
utterances-bot opened this issue Jul 14, 2022 · 2 comments
Open

c01/c01_24 #44

utterances-bot opened this issue Jul 14, 2022 · 2 comments

Comments

@utterances-bot
Copy link

1.24 时有时无的切片异常 — Python黑魔法手册 1.0.0 documentation

https://magic.iswbm.com/c01/c01_24.html

Copy link

類似於

>>> alist = [0, 1, 2, 3, 4]
>>> alist[:100]
[0, 1, 2, 3, 4]

Copy link

在切片里 list[a:b] 如果a或者b大于列表长度 则默认改成列表长度 如果a>b 就让b会把b改成跟a相等 印象中是这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants