@smci: Python list is array-based: to delete an item in the middle, you have to move all items on the right to remove the gap that is why it is O(n) in time ... ... <看更多>
And the del keyword to delete the list itself, entirely. my_list = ['red', ... Python Tutorial for Beginners: https://youtu.be/9hvnSZPMtuw ... ... <看更多>