python全栈闯关--XX-细节总结汇总
Posted zxw-xxcsl
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python全栈闯关--XX-细节总结汇总相关的知识,希望对你有一定的参考价值。
1、The start value of slice is less than then end value,and the step is negative
print("if the start value less then the end value and the step is negative ! " "No error will be reported and empty will be returned, ") for i in range(0, 10, -1): print(i)
2、One line of code exchanges the value of a and b
# One line of code exchanges value of a and b a = 1 b = 2 a, b = b, a print(a, b)
以上是关于python全栈闯关--XX-细节总结汇总的主要内容,如果未能解决你的问题,请参考以下文章