编程语言对比 with

版权声明:本文为作者创作,转载请注明出处:http://blog.csdn.net/claroja,如有商业用途请联系QQ:63183535。 https://blog.csdn.net/claroja/article/details/87938168
类型 python javascript java c
with

python

with A() as a, B() as b:
    suite

javascript

var a, x, y;
var r = 10;

with (Math) {
  a = PI * r * r;
  x = r * cos(PI);
  y = r * sin(PI / 2);
}

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/with

展开阅读全文

没有更多推荐了,返回首页