SWIFT中的repeat...while类似于JAVA\.NET中的 do while.大同小异只是把do换成了repeat

var index = 10
repeat{
  print(index)
  index--
} while(index>0)