1-将需要修改的文件拖到同一个文件夹 2-打开终端输入 for i in *; do mv "$i" "$i.jpg";done 转载于:https://www.cnblogs.com/zhenghaimin/p/8308881.html