摘要: Python 字符串与列表之间相互转换 1. 字符串转列表 test_str = "Hello World" test_list = test_str.split(" ") 输出: ['Hello', 'World'] 2. 列表转字符串 test_list = ["Hello", "World"] 阅读全文
posted @ 2021-11-29 14:48 KB、渣科 阅读(899) 评论(0) 推荐(0) 编辑