import re
a='Beautiful, is; better*than\nugly'
# 四个分隔符为:, ; * \n
x= re.split(',|; |\*|\n',a)
print(x)
会报错,AttributeError: module 're' has no attribute 'split'
import re
a='Beautiful, is; better*than\nugly'
# 四个分隔符为:, ; * \n
x= re.split(',|; |\*|\n',a)
print(x)
会报错,AttributeError: module 're' has no attribute 'split'
我执行没问题,重新安装下re试试