两种方法:
#define _CRT_SECURE_NO_WARNINGS
看看这篇 : https://blog.csdn.net/weixin_43519514/article/details/120942253
使用scanf_s()代替就好