**运营商 [英] ** Operator
本文介绍了**运营商的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下示例来自python docs
( http://docs.python.org/tut/node7.htm...0000000000000) ,我
无法理解**中的**运算符以下表达式:
In the example below from the python docs
(http://docs.python.org/tut/node7.htm...0000000000000), I
am not able to understand the ** operator in the following expression:
[(x,x ** 2)for ve in vec]
[(x, x**2) for x in vec]
我理解列表理解作为一个整体,但忘记了
**运算符的使用。有人可以指导我。
I understand the list comprehension as a whole but have forgotten the
** operator''s use. Can someone please guide me.
推荐答案
我在解释器上尝试了它,它看起来像是对力量 br />
of操作符号/功能。能否请您在文档中指出此运算符的正式
定义?
I tried it on the interpreter and it looks like it is the "to the power
of" operator symbol/function. Can you please point me to the formal
definition of this operator in the docs?
Sathyaish< sa *** ****@gmail.com>写道:
Sathyaish <sa*******@gmail.com> wrote:
我在解释器上尝试过它,它看起来像是强大的力量。操作符号/功能。你能否指点我在docs中对这个运算符的正式定义?
I tried it on the interpreter and it looks like it is the "to the power
of" operator symbol/function. Can you please point me to the formal
definition of this operator in the docs?
Alex
http://docs.python.org/ref/power.html
Alex
谢谢,Alex。
Thanks, Alex.
这篇关于**运营商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文