"subroutine" بـChinese (Simplified)
子程序
التعريف
子程序是在计算机程序中执行特定任务的一组指令,可以在程序中多次使用。
ملاحظات الاستخدام (Chinese (Simplified))
“子程序”是编程领域的术语,有时与“函数”或“过程”互换使用,具体含义可能因编程语言不同而有差别。
أمثلة
This program uses a subroutine to add two numbers.
这个程序使用一个**子程序**来将两个数字相加。
A subroutine helps keep the code organized.
**子程序**有助于让代码更有条理。
You can call the subroutine many times in your program.
你可以在程序中多次调用这个**子程序**。
Let me show you how this subroutine makes everything run smoother.
让我给你演示这个**子程序**怎样让一切运行得更顺畅。
Oops, the bug was actually inside the subroutine!
哎呀,原来这个问题就在**子程序**里!
When your code gets repetitive, just turn that part into a subroutine.
如果你的代码很重复,最好把那部分变成一个**子程序**。