| 类型 | 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

1万+

被折叠的 条评论
为什么被折叠?



