2024年12月24日
Swift 第一个程序
要运行您的首个Swift程序,您必须在计算机上安装Xcode和Swift。
打开Xcode Playground,并写下以下代码:
程序
// This is the first Swift program also called Hello, World! Program
import Swift
print("Hello, World!")
输出:
"Hello World"
程序解释
1. // This is the first Sw
Swift
第一个程序