📜  在python中,字符列表与字符串相同. - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:41.849000             🧑  作者: Mango

代码示例1
# No !
# A string looks like this:
string = "python"
# While a liste of characters looks like
liste_characters = ['p', 'y', 't', 'h', 'o', 'n']

# But you can switch a string to a list by using
list(string)