[英]What does '%% time' mean in python-3?
What does %%time
mean in python? %%time
在python中是什么意思? I am using python 3 and have some source code containing 我正在使用python 3并包含一些源代码
%%time
Does this call the time module? 这会调用时间模块吗? or does it have another function?
还是还有其他功能?
%%time
is a magic command. %%time
是一个魔术命令。 It's a part of IPython. 它是IPython的一部分。
%%time
prints the wall time for the entire cell whereas %time
gives you the time for first line only %%time
打印整个单元格的墙时间,而%time
给您第一行的时间
Using %%time
or %time
prints 2 values: 使用
%%time
或%time
打印2个值:
You can read more about it in the documentation 您可以在文档中了解更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.