擅长:python、mysql、java
<p>你可以在这里<a href="https://stackoverflow.com/questions/203090/how-do-i-get-current-datetime-on-the-windows-command-line-in-a-suitable-format">Stackoverflow Discussion about Datetime from CMD</a>和这里<a href="https://www.dostips.com/forum/viewtopic.php?f=3&t=4555" rel="nofollow noreferrer">Getting Datetime independently from Windows locale</a>找到答案</p>
<p>此外,可以通过以下方式在python中设置区域设置:</p>
<pre><code>import locale
locale.setlocale(locale.LC_TIME, "your/locale/here")
</code></pre>