Appearance
将列表压缩。
from usepy import compact
lst
>>> compact([0, 1, False, 2, '', 3, None, 4, {}, 5]) [1, 2, 3, 4, 5]