The principle of code one and code two are the same, but why are the results of execution different? I think it is caused by the beginning of the directory of environment variables, which invalidates the previous environment variables and packages them twice: