1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16let a = {
17  0b1: 1,
18  0o2: 2,
19  0x3: 3,
20  1e2: 100,
21}
22print(a[0b1])
23print(a[0o2])
24print(a[0x3])
25print(a[1e2])
26print(a[1])
27print(a[2])
28print(a[3])
29print(a[100])
30
31let b = {
32  1: 1,
33  2: 2,
34  3: 3,
35  100: 100,
36}
37print(b[1])
38print(b[2])
39print(b[3])
40print(b[100])
41print(b[0b1])
42print(b[0o2])
43print(b[0x3])
44print(b[1e2])