python 字符串分割2024-03-14 10:12:52字符串分割,可以用split,rsplit方法,通过相应的规则来切割成生成列表对象 info = 'name:haha,age:20$name:python,age:30$name:fef,age:55'content = info.split('$')print content上一篇:配置 PHP 的 Session 存储到 Redis下一篇:ZOJ 2750 Idiomatic Phrases Game(Dijkstra)