2019独角兽企业重金招聘Python工程师标准>>> 写法如下: String temp1= temp.replaceAll("\\[", "").replaceAll("\\]", ""); 转载于:https://my.oschina.net/u/2842177/blog/1603949