在处理用户输入的标签字符串时,需要移除每个标签两端的空格并将所有标签转换为小写。已知输入为"Python, DATA Science , AI ",以下哪个代码能正确输出列表["python", 'data science', 'ai']?()
tags = " Python, DATA Science , AI " result = tags.split(',').lower().strip()
tags = " Python, DATA Science , AI " result = tags.strip().lower().split(',')
tags = " Python, DATA Science , AI " result = tags.replace(' ', '').lower().split(',')
tags = " Python, DATA Science , AI " result = [tag.strip().lower() for tag in tags.split(',')]