A conditional compilation block allows code to be only compiled depending on the value of one or more compilation conditions. Every conditional compilation block begins with the `#if` and ends with `#endif`. A simple conditional compilation block has the following form:
The condition `swift(>=4.0)` is applied at the statement `#if #endif` . As a result, the `print` statement is executed only if swift version is greater than or equal to 4.0 at compile time.
条件`swift(>=4.0`应用于语句`#if#endif`。 结果,仅在编译时 swift 版本大于或等于 4.0 时才执行`print`语句。