Python3 list clear() method

Brief introduction python list’s clear() function method is used to clear the entire list (list), the role is the same as del lis[:], but it is different from the list’s remove method, the former is to clear the latter is…