1.strcpy是个不安全的函数,尽量使用strncpy替代 2.strncpy不拷贝'\0',要注意 详细解释见:https://blog.csdn.net/stpeace/article/details/22581763