第2步:设置函数!我们暂时将不会看到它如何运行。记住,我们必须调用函数来查看它们的运行。

  • 点击 ,将 Define Function with Parameters 拖动到程序中。
  • 将函数的名称更改为 pig_latin
  • 将第一个参数改为 word ,删除第二个参数。
  • 点击 ,将 String Variable 拖动到函数内部。


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)