标签:ring eth style split pre str split() code string
>>> string = "www.abc.com.cn" >>> print(string.split(‘.‘,1)) [‘www‘, ‘abc.com.cn‘] >>> print(string.split(‘.‘,2)) [‘www‘, ‘abc‘, ‘com.cn‘]
标签:ring eth style split pre str split() code string
原文地址:https://www.cnblogs.com/yaoweilei/p/9015631.html