str1 = "hi hello world" print(str1.split(" "))输出:['hi', 'hello', 'world']
l = ["hi","hello","world"] print(" ".join(l))输出:hi hello world
posted on 2019-12-05 16:32 骄傲的赛亚人 阅读(195) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 骄傲的赛亚人 Powered by .NET 9.0 on Kubernetes