擅长:python、mysql、java
<p>平台独立性通常意味着所有平台变得更糟。因此,对于独立于平台的方式,您必须假设环境变量区分大小写,但决不要试图依赖于此(即,不要故意在不同大小写中创建同名变量),而是能够处理它。否则你可能会在非Windows上搞砸。在</p>
<p>至于哪些平台区分大小写,哪些不区分大小写。Windows不区分大小写,Unix之类的操作系统区分大小写,请参见:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Environment_variable#Case_sensitive" rel="nofollow">http://en.wikipedia.org/wiki/Environment_variable#Case_sensitive</a></li>
<li><a href="http://en.wikipedia.org/wiki/Environment_variable#Case_insensitivity" rel="nofollow">http://en.wikipedia.org/wiki/Environment_variable#Case_insensitivity</a></li>
</ul>
<p>对于异国情调的操作系统,你必须检查它的文档。在</p>
<p>希望有帮助。在</p>