you just need to do A = list.split(", ") and/or A = list.split(" ") to split the list wherever there is ", " or " " respectively
if by "special characters" you mean the commas they are getting removed with split(", "). if you mean the line chenges you can do A = list.strip().split(", ")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.