生活中的 function 實例練習(作業5)

學______的歷程

func learnInstrument(instrument:String){

print(“入手心愛的”+instrument)

print(“充滿熱情的找老師上課”)

print(“充滿鬥志的回家練”+instrument)

print(“進入停滯期”)

print(“開始懷疑自己當初的決定”)

print(“然後做出重大決定的時刻來臨!”)

}

learnInstrument(instrument:”violin”)

入手心愛的violin

充滿熱情的找老師上課

充滿鬥志的回家練violin

進入停滯期

開始懷疑自己當初的決定

然後做出重大決定的時刻來臨!

--

--