数组转字符串

it2022-05-09  25

join用指定的字符连接collection中的element   def list = [2007, 8, 26] list.join('-')   运行结果: 2007-8-26   def arr=['asd',2018,123] as String[]   print arr.sort().join('')

转载于:https://www.cnblogs.com/zhouweiye/p/3594097.html


最新回复(0)