doc: update docs/python.md (#432)

This commit is contained in:
zhouhw0306 2023-09-15 15:26:50 +08:00 committed by GitHub
parent b14257542f
commit bbd3292c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -454,10 +454,10 @@ Enter your name: Tom
```python
>>> # 是否以 H 开头
>>> "Hello, world!".endswith("H")
>>> "Hello, world!".startswith("H")
True
>>> # 是否以 h 开头
>>> "Hello, world!".endswith("h")
>>> "Hello, world!".startswith("h")
False
>>> # 是否以 ! 结尾
>>> "Hello, world!".endswith("!")