简体   繁体   English

Python中的now()和time()有什么区别?

[英]What's the difference between now() and time() in Python?

I´d like to know the difference between those two functions in Python, time.now() and time.time(). 我想知道Python中这两个函数time.now()和time.time()之间的区别。 Thanks a lot! 非常感谢!

If you mean datetime.now() and time.time() : 如果您指的是datetime.now()time.time()

datetime.now() will be more precise, if possible. 如果可能的话, datetime.now()将更加精确。

See: 看到:

http://docs.python.org/library/datetime.html http://docs.python.org/library/datetime.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM