Skip to content

Commit 4fd972b

Browse files
committed
string 3
1 parent 5ab37fa commit 4fd972b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎108.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232
字符串这个序列的排序方法跟梁山好汉有点不同,第一个不是用数字1表示,而是用数字0表示。不仅仅python,其它很多语言都是从0开始排序的。为什么这样做呢?这就是规定。当然,这个规定是有一定优势的。此处不展开,有兴趣的网上去google一下,有专门对此进行解释的文章。
3333

34-
|0|1|2|3|4|5|6|7|8|9|10|11|
35-
|-|-|-|-|-|-|-|-|-|-|--|--|
36-
|s|t|u|d|y| |p|y|t|h|o |n |
34+
0 |1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |11
35+
---|---|---|---|---|---|---|---|---|---|---|---
36+
s |t |u |d |y | |p |y |t |h |o |n
3737

3838
上面的表格中,将这个字符串从第一个到最后一个进行了排序,特别注意,两个单词中间的那个空格,也占用了一个位置。
3939

@@ -201,4 +201,4 @@
201201

202202
[总目录](./index.md)   |   [上节:字符串(2)](./107.md)   |   [下节:字符串(4)](./109.md)
203203

204-
如果你认为有必要打赏我,请通过支付宝:**qiwsir@126.com**,不胜感激。
204+
如果你认为有必要打赏我,请通过支付宝:**qiwsir@126.com**,不胜感激。

0 commit comments

Comments
 (0)