一直很奇怪.CS文件中的ModulePath是什么,所以索性打印出来。 1.添加头文件 using Tools.DotNETCommon; 2.打印Log Log.TraceWarning("My log with a parameter: {0}", ModulePath); 这里ModuiPath位于参数数组中0的位置,所以{0}即可打印。多个参数的话就添加多个即可。 在Build的时候会在Console中打印出来 点击跳转参考回答