3
การเปิดออกการขยายการเปิดออกและการขยายแบบซ้อนกัน
พิจารณานิพจน์ต่อไปนี้ โปรดทราบว่าบางนิพจน์ซ้ำเพื่อนำเสนอ "บริบท" (นี่คือรายการยาว) a, b = 1, 2 # simple sequence assignment a, b = ['green', 'blue'] # list asqignment a, b = 'XY' # string assignment a, b = range(1,5,2) # any iterable will do # nested sequence assignment (a,b), c = "XY", "Z" # a = 'X', …