str1='abcd'
print(str1[::-3])
print(str1[-1::-1])
print(str1[::-1])
輸出:
da
dcba
dcba
可以看到步長為負時無論是否指定起始下標為-1都是一樣的。
Note: overview of the custom use process of Django rest framework permission class permission
Purpose : Try for different Ac
Comprehensive practice of Python & c++ mixed call programming -25 project creation and call based on ffmpeg extension library example environment
author : Empty bad uncle Blog
No module named ‘haystack. Various Django error reporting solutions such as URLs
Report errors :ModuleNotFoundE