Python 中的 Swap

交換兩個變數

a, b = b, a

先運算完等號右邊才賦值給等號左邊

 

Last Updated on 2023/08/16 by A1go

目錄
Bitnami