摘要: 字符串 1.1 常用操作 split 按照某种分隔符拆分字符串,得到一个列表 # 字符串按照空格拆分 test_str = "hello world" split_list = test_str.split(" ") print(split_list) 输出:['hello', 'world'] f 阅读全文
posted @ 2022-03-08 15:00 KB、渣科 阅读(47) 评论(0) 推荐(0) 编辑