英語小說單字筆記中2025-10-30

圖片
tallies 計數 obligation 義務 sarcastic 諷刺的 transactional 交易性的 tallies KK音標 :/ˈtælɪz/ 中文意思 :記錄、統計、符合、一致 例句 : The numbers on the report tally with our calculations. (報告上的數字與我們的計算結果 一致 。) She keeps a tally of all the items sold. (她 記錄 下所有賣出的商品。) obligation KK音標 :/ˌɑːbləˈɡeʃən/ 中文意思 :義務、責任、職責 例句 : We have an obligation to help those in need. (我們有 義務 幫助需要幫助的人。) He felt it was his obligation to tell the truth. (他覺得說出真相是他的 責任 。) sarcastic KK音標 :/sɑrˈkæstɪk/ 中文意思 :諷刺的、挖苦的、嘲諷的 例句 : She gave him a sarcastic smile after hearing his excuse. (聽完他的藉口後,她露出一個 諷刺的 笑容。) “Nice job,” he said in a sarcastic tone. (他用 挖苦 的語氣說:「幹得好啊。」) transactional KK音標 :/trænˈzækʃənəl/ 中文意思 :交易的、事務性的;以利益交換為導向的 例句 : Their relationship is purely transactional — based on what each can get from the other. (他們的關係完全是 利益交換式的 ,只看彼此能得到什麼。) The company needs to move beyond transactional interactions to build real trust with customers. (公司需要超越 單純交易式的互動 ,才能建立真正的...

「swift 2.0」類別函式

有類別成員 
當然會有類別函式
成員比較像是靜態屬性
函式比較像是動作

函式關鍵字 func
傳入參數:參數資料類型
比較特別的是回傳參數類別是放在小括弧後面
加上->回傳值類型

class Book{
    var title = "little women"
    var pubDate = 1868
    var price : Int?
    var author:String?
    func setAuthor(auStr:String) {
        author = auStr
    }
    func getAuthor()->String{
        return author!
    }
}

var ob = Book()
ob.setAuthor("Louisa May Alcott")
var au = ob.getAuthor()





留言