python 去掉字符串前后的“,‘

#strip前后端的“"”
print a.strip('\"')

#strip前后端的“'”
print a.strip('\'')

posted @ 2016-04-06 10:43  xybxj  阅读(533)  评论(0)    收藏  举报