Incorrect Info in datatype(string)
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
Open src/data_types/test_strings.py and inspect lines 76-80, especially the string-index diagram and accompanying example. Compare the displayed positive and negative indices with Python's actual indexing behavior, then correct the inaccurate information and verify the example remains consistent.
由索引模型根据 Issue 内容生成。
描述
# +---+---+---+---+---+---+
# | P | y | t | h | o | n |
# +---+---+---+---+---+---+
# 0 1 2 3 4 5 6
# -6 -5 -4 -3 -2 -1
HEY ☺️ @trekhleb 👋,
In Chapter 3 . DataTypes (3.3 $tring)
You explain about String Index
Whereas In Line (76-80)
I found an Mistake
Pls 🙏 reCorrect
Info view The Problem
# +---+---+---+---+---+---+
# | P | y | t | h | o | n |
# +---+---+---+---+---+---+
# 0 1 2 3 4 5 6
# -7 -6 -5 -4 -3 -2 -1
I actually test python[-1] = n (_we get last char of string)`
Love❤️ Your Work on this Repo
REGARD
@prajwalkedari
- 主要语言
- Python
- 星标
- 18.3k
- 派生
- 3k
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
trekhleb/learn-python 的其他 Issue
-
Typo in Variable Name: "weapon.strip()" Should Be "fruit.strip()" in List Comprehensions Example 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
trekhleb/learn-python#105 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
trekhleb/learn-python#104 · 1 条评论 ·
-
Learning Python 未关闭
难度 5/5 一周以上 新手友好度 10/100
trekhleb/learn-python#108 ·
-
难度 3/5 1-2 天 新手友好度 30/100
trekhleb/learn-python#107 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
trekhleb/learn-python#106 ·
查看 trekhleb/learn-python 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 70/100
huggingface/Repo2RLEnv#163 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
难度 2/5 1-3 小时 新手友好度 70/100
NousResearch/hermes-agent#121143 ·