更新时间:2023-02-18 16:16:03
尝试使用列表理解,您可以有效地将列表重新分配为等效的列表,并删除引号.
Try a list comprehension which allows you to effectively and efficiently reassign the list to an equivalent list with quotes removed.
g1 = [i.replace('"', '') for i in g1] # remove quote from each element