```py a = " ll " a.strip() # "ll" ``` ```py str = "0000000this is string example....wow!!!0000000"; print str.strip( '0' ); #this is string example....wow!!! ``` **Python 判断列表是否为空 len(list)==0**