python split()
import re
a='Beautiful, is; better*than\nugly'
x= re.split(',|; |\*|\n',a)
print(x)
['Beautiful', ' is', 'better', 'than', 'ugly']
'御景龙庭别墅'.strip('别墅')
Out[28]: '御景龙庭'
import re
a='Beautiful, is; better*than\nugly'
x= re.split(',|; |\*|\n',a)
print(x)
['Beautiful', ' is', 'better', 'than', 'ugly']
'御景龙庭别墅'.strip('别墅')
Out[28]: '御景龙庭'