return break continuedifference

return break continuedifference

break: End the current loop body (such as for, while)
continue: Jump out of this loop and continue to perform the next operation (such as for, while)
return: Not only can you exit the loop, but you can also return the value in the return statement, and you can also End the code in the current function body

	 return ;  //返回空的出去就能够退出循环

Guess you like

Origin blog.csdn.net/m0_62496369/article/details/127342202