#if swift(>=3.0)
print("We are using Swift 3.0!")
#else
print("Not using Swift 3.0!")
#endif
#if swift(>=3.0)
print("We are using Swift 3.0!")
#else
print("Not using Swift 3.0!")
#endif
本文标题:Swift - 编译时的 Swift 版本检查
本文链接:https://www.haomeiwen.com/subject/tcwcyttx.html
网友评论