python中的各种符号(欢迎补充) | 您所在的位置:网站首页 › show表示什么意思 › python中的各种符号(欢迎补充) |
海象运算符(新运算符) "There is new syntax := that assigns values to variables as part of a larger expression. It is affectionately known as “the walrus operator” due to its resemblance to the eyes and tusks of a walrus." “PEP572的标题是「Assignment Expressions」,也就是「赋值表达式」,也叫做「命名表达式」,不过它现在被广泛的别名是「海象运算符」(The Walrus Operator)。因为:=很像海象「眼睛小,长着两枚长长的牙」这个特点^_^” |
CopyRight 2018-2019 实验室设备网 版权所有 |