0

exists可以判断文件或者文件夹都存在

import os.path
os.path.exists(path)
0

init需要初始化所有要存储的属性

public func init(host:String, port:Int64){
   self.host = host
   self.port = port
}

Broadcast


JoyK
Better personal homepage
reddit style
GitHub Flavored Markdown syntax
Adaptive layout