利用re模块分割含有多种分割符的字符串: #!/usr/bin/python # -*- coding: UTF-8 -*- import re a='Beautiful, is; better*than\nugly' # 四个分隔符为:, ...
確定! 回上一頁