原因竟然是因为在windows下编辑,选择的换行符不对。选择成Unix即可。
参考:https://blog.csdn.net/weixin_45785469/article/details/111647735