python中的“...”是什么?

时间:2017-01-01 21:17:28

标签: python python-3.x

我在aiohttp中看到了这个省略号/三点运算符:

    if debug is ...:
        debug = loop.get_debug()
  • 它叫什么,它做什么?
  • 是某种解构,还是传播运营商?
  • 它与**some_kwargs*some_args
  • 的区别如何?

溶液

在这个特定的例子中:

>>> ...
Ellipsis
>>> x = Ellipsis
>>> x is ...
True
>>> ... is ...
True

代码:

0 个答案:

没有答案