Windows XP에서 서로 다른 Python 버전에서 계산할 때 두 가지 수정 시간이 달라집니다.Windows에서 os.path.getmtime()에 대해 Python2.4 및 2.6이 다르게 동작합니다.
Python2.4
C:\Copy of elisp>c:\python24\python
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.getmtime("auto-complete-emacs-lisp.el")
1251684178
>>> ^Z
Python2.6
C:\Copy of elisp>C:\Python26\python
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.getmtime("auto-complete-emacs-lisp.el")
1251687778.0
>>>
Python2.6 및 Python2.4 의해보고 3,600초의 차이가있다.
이 이상한 동작의 이유는 무엇입니까? 3,600초의 차이가 있습니다
실제로 어느 쪽이 맞습니까? 나는 2.6을 추측하고 있냐? – DNS
Python2.6이 정확함 –