use list() mehod:
numbers = "342"
lst = list(numbers)
print lst // ['3','4','2']
Reference:
http://ubuntuforums.org/showthread.php?t=541931
numbers = "342"
lst = list(numbers)
print lst // ['3','4','2']
Reference:
http://ubuntuforums.org/showthread.php?t=541931
No comments:
Post a Comment