def?is_not_empty(s):
????return?s?and?len(s.strip())?>?0
filter(is_not_empty,?['test',?None,?'',?'str',?'??',?'END'])
return是判斷s有值和去除空字符串后元素個(gè)數(shù)大于0都為真?
錯(cuò)過(guò)了年華
2017-12-24 18:35:59