程序设计中,return语句又称返回语句,是指计算机退出当前正在执行的子程序,并回到调用该子程序的代码处并继续执行后续的语句。许多编程语言中的函数通过返回语句将返回值传给调用该函数的源代码[1]

参考文献

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.