是否要返回值,得看是否需要反馈信息。举个例子,要读取文件数据,需要时时返回,所有需要用return , 故开始时不能有void 转载于:https://www.cnblogs.com/wade-pcb/p/4701574.html