if not duplicate:当duplicate不为空的数组、字典、集合、元组或者长度为0的字符串或者None;if duplicate is not None:当duplicate不是None;
if not duplicate:当duplicate不为空的数组、字典、集合、元组或者长度为0的字符串或者None;
if duplicate is not None:当duplicate不是None;