func season( month: Int ) ->String {
switch month{
case 3, 4, 5:
return "春天"
case 6, 7, 8:
return "夏天"
case 9, 10, 11:
return "秋天"
case 12, 1, 2:
return "冬天"
default:
return "我的天"
}
}
season(9)
switch month{
case 3, 4, 5:
return "春天"
case 6, 7, 8:
return "夏天"
case 9, 10, 11:
return "秋天"
case 12, 1, 2:
return "冬天"
default:
return "我的天"
}
}
season(9)
2016-09-05