在 Mac 上建立 Playground
當您準備好開始自己的程式設計計畫案時,您可以建立新的 Playground。
在 Mac 上的 Swift Playgrounds App 中,前往「我的 Playground」視窗,然後在底部的「更多 Playgrounds」區域中按一下 Playground。
若您在「更多 Playgrounds」畫面上,請按一下 來前往「我的 Playground」視窗。
若您正在 Playground 中作業,請選擇「視窗」>「我的 Playground」。
按一下「我的 Playground」視窗左下角附近的 Playground 按鈕 來建立新的 Playground。
命名為「我的 Playground」的新 Playground 會在「我的 Playground」視窗中顯示。 您可以按兩下來打開。
當您準備好時,便可以加入程式碼到 Playground,請應用您在「學習程式設計」Playground 和其他您嘗試執行程式碼的 Playground 所學的技能。
「更多 Playgrounds」畫面上的許多「起點」樣板都包含可供探索和執行的範例程式碼。若要依步驟執行程式碼並在執行期間查看反白效果,請按一下 ,然後選擇「逐步執行程式碼」(或使用觸控列)。