swift字符串,数组,字典和集合的遍历
//字符串的遍历print("字符串遍历")var str = "China"for item in str.characters { print(item)}print("+++++++++++++++++++")for item in str.characters.indices { print(str[item])}print("++++++++++++++++