标签: python regex
纠正以下警告的正确方法是什么?为什么首先出现该警告?
>>> import re >>> _split_path = re.compile(r'\.|(?=\[)').split >>> _split_path('Genre') <string>:1: FutureWarning: split() requires a non-empty pattern match. ['Genre']