SWIFT中的repeat...while

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

var index = 10
repeat{
  print(index)
  index--
} while(index>0)
原文地址:https://www.cnblogs.com/foxting/p/5540427.html