a = 'abc/de:fg;hij\nkl,m.n' print(a.translate(str.maketrans('/:;\n,.', ' ' * 6)).split()) 两行搞定
点赞 评论

相关推荐

点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务