根据提示 scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
在文件顶部加入一行:#define _CRT_SECURE_NO_WARNINGS
深度学习原理与实战教程: https://edu.51cto.com/sd/b5af5