有关此标志的文档/信息 [英] Documentation/Info on this sign
问题描述
有人能指出我使用的这个(和类似的)标志的文件在Python中使用
:
+ =
用法是:
x = + = len(y)
从字面上看,这是'变量x等于
''时髦符号 - 我想要学习'变量y的长度'
谢谢你,
巴特
Could someone point me to documentation on this (and similar) signs used
in Python:
+=
Usage would be:
x = += len(y)
Literally, that''s "variable x equals
''funky-symbol-that-I-want-to-learn-about'' the length of variable y"
Thank you,
Bart
推荐答案
Bart Nessux写道:
Bart Nessux wrote:
有人能指出我的文档在Python中使用的这个(和类似的)标志:
+ =
用法是:
x = + = len (y)
从字面上看,这是'变量x等于
''时髦符号 - 我想要学习'变量y的长度' ;
谢谢你,
巴特
Could someone point me to documentation on this (and similar) signs used
in Python:
+=
Usage would be:
x = += len(y)
Literally, that''s "variable x equals
''funky-symbol-that-I-want-to-learn-about'' the length of variable y"
Thank you,
Bart
巴特,见 http://docs.python.org/ ref / augassign.html
wes
Bart, see http://docs.python.org/ref/augassign.html
wes
wes weston写道:
wes weston wrote:
Bart Nessux写道:
Bart Nessux wrote:
有人能指出我在Python中使用的这个(和类似的)标志的文档:
+ =
用法是:
x = + = len(y)
从字面上看,那个'变量x等于
''时髦-symbol-我想要了解''变量y的长度'
谢谢你,
Bart
Could someone point me to documentation on this (and similar) signs
used in Python:
+=
Usage would be:
x = += len(y)
Literally, that''s "variable x equals
''funky-symbol-that-I-want-to-learn-about'' the length of variable y"
Thank you,
Bart
Bart,请参阅 http://docs.python.org/ref /augassign.html
wes
Bart, see http://docs.python.org/ref/augassign.html
wes
谢谢Wes!
Thanks Wes!
Bart Nessux写道:
Bart Nessux wrote:
有人能指出我在Python中使用的这个(和类似的)标志的文档:
+ =
http://docs.python.org/ref/augassign.html
用法是:
x = + = len(y)
这是什么意思? 用法将是......?
从字面上看,那个'变量x等于
''时髦符号 - 我想要学习的''变量y的长度
Could someone point me to documentation on this (and similar) signs used
in Python:
+=
http://docs.python.org/ref/augassign.html
Usage would be:
x = += len(y)
What do you mean by this? "Usage would be"... ?
Literally, that''s "variable x equals
''funky-symbol-that-I-want-to-learn-about'' the length of variable y"
嗯?这没有意义......两个=和+ =是分配
语句,所以你不能把它们放在另一个之后。
你想做什么?
-Peter
Huh? This doesn''t have meaning... both = and += are assignment
statements, so you can''t put one right after the other.
What are you trying to do?
-Peter
这篇关于有关此标志的文档/信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!