python的strip('')函数带参数

In[45]: x
Out[45]: 

'   ----fdaf-dafdfa-  '


In[46]: x.strip(' ')
Out[46]: 
'----fdaf-dafdfa-'

你可能感兴趣的:(python函数)