python 去除字符串两端的引号

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

输出

"srting"
srting

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/9967118.html