โค้ด: เลือกทั้งหมด
tuple1 = ("Mindphp", "Pythone", "Traning", 2013, 2014)
tuple2 = (1, 2, 3, 4)
print(tuple1[1:3])
('Pythone', 'Traning,2013'')
แต่ผลลัพธ์ได้เป็น
Moderator: mindphp, ผู้ดูแลกระดาน
โค้ด: เลือกทั้งหมด
tuple1 = ("Mindphp", "Pythone", "Traning", 2013, 2014)
tuple2 = (1, 2, 3, 4)
print(tuple1[1:3])
โค้ด: เลือกทั้งหมด
print(tuple1[1:4])
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 97