發揮創意請 AI 出題,出一些在 function 裡印出計算結果的題目,然後再練習解題。
func containsChineseCharacters(input: String) -> Bool { input.range(of: "\\p{Han}", options: .regularExpression) != nil}containsChineseCharacters(input: "蘋果")containsChineseCharacters(input: "apple")