Last active
April 21, 2020 12:56
-
-
Save Celia-code/edfb17bba4be47c2fb4977ebc5b7a564 to your computer and use it in GitHub Desktop.
字符串
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numbers = '123456789' | |
numbers[start:end:step] # [開始位置:結束位置:間隔] | |
n = numbers[0:3] | |
print(n) | |
# 打印出1,2,3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment