I tried using all the methods suggested by others but its not working. methods like str.split(), lst = list("abcd") but its throwing error saying [TypeError: 'list' object is not callable]分割每個字符的Python 3.5
I want to convert string to list for each character in the word input str= "abc" should give list = ['a','b','c']
我想要得到的str的字符以列表形式 輸出的字 - [ '一', 'B', 'C', 'd', 'E', 'F'],但其給出[ 'ABCDEF']
str = "abcdef"
l = str.split()
print l
'列表( 「ABCDEF」)的' – MYGz
可能的複製(HTTP: //stackoverflow.com/questions/4978787/how-to-split-a-string-into-array-of-characters-with-python) –
@MYGz:類型錯誤:名單'對象不是可調用 –