Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 230 Bytes

23.md

File metadata and controls

17 lines (12 loc) · 230 Bytes
@author jackzhenguo
@desc 
@date 2019/2/23

23 交换两元素

def swap(a, b):
    return b, a


print(swap(1, 0))  # (0,1)
[上一个例子](22.md) [下一个例子](24.md)