参考https://blog.csdn.net/qq_32998593/article/details/112440843 是因为切换成了中文输入法。 只需要切换成英文输入法(或者代码的属性文件里把GUI改成false(bushi