刪除元組示例【每日一個知識點第326期-Python】
元組中的元素值是不允許刪除的,可以使用del語句來刪除整個元組,例如:
tup = ('physics', 'chemistry', 1997, 2000);
print tup;
del tup;
元組中的元素值是不允許刪除的,可以使用del語句來刪除整個元組,例如:
tup = ('physics', 'chemistry', 1997, 2000);
print tup;
del tup;