doc: update docs/python.md (#432)
This commit is contained in:
parent
b14257542f
commit
bbd3292c8e
@ -454,10 +454,10 @@ Enter your name: Tom
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
>>> # 是否以 H 开头
|
>>> # 是否以 H 开头
|
||||||
>>> "Hello, world!".endswith("H")
|
>>> "Hello, world!".startswith("H")
|
||||||
True
|
True
|
||||||
>>> # 是否以 h 开头
|
>>> # 是否以 h 开头
|
||||||
>>> "Hello, world!".endswith("h")
|
>>> "Hello, world!".startswith("h")
|
||||||
False
|
False
|
||||||
>>> # 是否以 ! 结尾
|
>>> # 是否以 ! 结尾
|
||||||
>>> "Hello, world!".endswith("!")
|
>>> "Hello, world!".endswith("!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user