from ast import literal_eval
str = "[('T','3'),'-',('T','3')]"
parm_lst = literal_eval(str)
from ast import literal_eval
str = "[('T','3'),'-',('T','3')]"
parm_lst = literal_eval(str)
Jalena
原创内容,转载请注明出处! 部分内容来自网络,请遵守法律适用!
文章评论