python 去除字符串两端的引号

a='"srting"'
print(a)
b=eval(a)
print(b)

输出

"srting"
srting
原文地址:https://www.cnblogs.com/sea-stream/p/9967118.html