标签:str print code lis list 相互 python字符串 pre 字符
str_ = ‘sky‘
str_list = list(str_)
print(str_list)
# [‘s‘, ‘k‘, ‘y‘]
str_u = ‘‘.join(str_list)
print(str_u)
# sky
标签:str print code lis list 相互 python字符串 pre 字符
原文地址:https://www.cnblogs.com/davis12/p/14661699.html