python 里调用timezone.now() 导致代码走了两遍

yy670010378 发布于 2016/03/04 09:35
阅读 645
收藏 0
from django.utils import timezone
timezone.now()

print '======'

控制台打印了两遍======,有人知道为什么?

加载中
1
fromdtor
fromdtor
(ENV) changqingzhao@bogon ~/w/xiaohua> python manage.py shell
Python 2.7.10 (default, Oct 23 2015, 18:05:06)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.utils import timezone
>>> timezone.now()
datetime.datetime(2016, 3, 4, 19, 23, 6, 598209)
>>> print '======'
======
>>> exit()
(ENV) changqingzhao@bogon ~/w/xiaohua>
返回顶部
顶部