执行以下操作的更有效方法是什么:
directors = get_element_or_none(title_node, 'Director')
producers = get_element_or_none(title_node, 'Producer')
writers = get_element_or_none(title_node, 'Writer')
if directors:
directors = [director.strip() for director in directors.split(',')]
if producers:
producers = [producer.strip() for producer in producers.split(',')]
if writers:
writers = [writer.strip() for writer in writers.split(',')]