Commit 35711f9e by BellCodeEditor

save project

parent ae461608
Showing with 2 additions and 0 deletions
......@@ -15,5 +15,6 @@ print(hero)
print('i =',i)
print('len =',len(hero))
#臂力大王
print("臂力大王是",hero[-6:])
print("臂力大王是:",hero[10:1:-2]) #从右往左
print("臂力大王是:",hero[-1:-10:-2]) #负索引
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment